Yeast infection? Harm to baby??

Katrien
Hey,
Can a vaginal yeast infection do harm to my baby?
I went to the gyn 14 days ago and he did a swab and yesturday i got a letter to tell me i have a yeast infection and two prescriptions for a vaginal cream. Now i have to see him again tonight for the baby's check-up and thank god beaucouse the cream he prescribed i'm allergic to 😊
I have been doing somme reading and a few websites tell that if you still have the infection abd the baby is born it's verry likley it will get somme form of yeast infection as well. Any toughts? (I'm going to ask my gyn aswell 😊😊)