If both a guy and girl have herpes, it is possible for the baby to get infected during childbirth. This can happen if the mother has an active outbreak of genital herpes around the time of delivery. In such cases, there are precautions that healthcare providers can take to reduce the risk of transmission to the newborn. It's essential for pregnant women with herpes or their partners to consult their healthcare provider early in pregnancy for guidance on managing risks and protecting themselves and their baby from potential complications related to HSV (herpes simplex virus) infection.