Yes, some Sexually Transmitted Diseases (STDs) can be transmitted from mother to fetus during pregnancy or at birth. Some examples are gonorrhea, chlamydia, syphilis, and HIV.
That is the reason why it is crucial for all pregnant women to do all checkups and serologies recommended. STDs can become severe, or even lead to stillbirth.
Suggested for you: What Diseases Are Dangerous During Pregnancy?.