If I’m pregnant and I get a vaginal infection, should I worry about my baby?

Most vaginal infections in pregnant women will not hurt the baby. Yeast infections during pregnancy do not normally travel up into the uterus to harm the baby in any way. Any concerns related to these infections have mainly to do with the mother’s discomfort due to itching and soreness.
Recent research has shown that bacterial vaginosis (BV) increases the chance of premature birth or miscarriage1. If you suspect that you have a vaginal infection while pregnant, see your doctor.
Pregnant women are ten times more prone to vaginal infection than are non-pregnant women. Hormone levels go up during pregnancy, which disrupts the normal vaginal environment, enabling the growth of bad bacteria. So if you’re expecting, visit your doctor regularly for prevention or immediate cure of any vaginal infection.

1https://www.nhs.uk/Conditions/Bacterialvaginosis/Pages/Introduction.aspx