Possible. If mothers get infected during pregnancy, the risk can be lowered by taking the right medication from an experienced sexologist. They should treat their infection with utmost care so that the baby is not born infected.