Since herpes is spread from active skin infection and not from latent infection, a newborn baby can be infected with herpes only if they are born while the virus is active. Neonatal herpes generally occurs if the baby's skin becomes infected during the birth process.