Your symptoms are suggestive of herpes simplex
.Herpes simplex is a sexually transmitted disease
. Congenital transmission ,that is transmission to foetus in utero is rare.
However active herpes lesions during delivery has a high chance of causing neonatal herpes in the infant. Women with active lesions nearig delivery are offered caesarean section
to prevent the transmission. An alternative is treating the mother with ACYCLOVIR