can i do keto diet while 17 weeks pregnant

hey! im 17 weeks pregnant and i was wondering if keto is safe while pregnant?