You must discuss this with you OB. Most benzos like Xanax are not advisable during pregnancy, Paxil is more acceptable, but again this needs to be brought to the attention of your doctor.
It is important to get prenatal care early especially when you have issues that need to be addressed. Emotional problems in pregnancy can lead to postpartum depression, so this needs to be addressed and aggressively treated, but most likely not with Xanax.
Good luck to you.
Xanax is class d..it is not safe..
There shouldn't be any problems as long as you keep it under control and at a low dose. There won't be any birth defects or any other negative affects on the baby if you take safe doses. Like 1-2mg. I'm not a doctor I just know a few things. I would ask your doctor anyways just tone certain. Good luck with your child and congratulations!