OBGYN Prescribed me Terconazole Cream?

Pumpkin • Girl Momma 💖 Baby Girl #4 due in Oct.

I’m 38 weeks pregnant and a couple days and my OB prescribed me a vaginal cream for 7 days for a yeast infection. I could go into labor anytime now..If I go into labor with an yeast infection would it harm my baby?