if a woman gets an infection while she is pregnant, sometimes the infection can affect her fetus. the placenta protects the fetus from many different viruses, bacteria, and other pathogens that cause infections. however, some pathogens can get through the placenta and infect the fetus. this is called vertical transmission. some of these infections can cause birth defects.