The use of acyclovir during pregnancy has been studied extensively. It is generally considered safe, especially when the benefits outweigh the risks. It is often used to treat or suppress herpes simplex infections in pregnant women to prevent transmission to the newborn.