Vegan while pregnant

Hey guys. I just finished watching “what the health” on Netflix and it is so eye opening. Now, I want to switch (or try to switch) to a vegan lifestyle. I guess my question would be is it safe to become a vegan while pregnant?