Night sweats and hot flashes can happen during pregnancy and after giving birth, which is called the postpartum period. In one study, 35% of the subjects reported hot flashes while they were pregnant and 29% reported hot flashes after having their babies. This may be related to hormone changes that happen during and after pregnancy, but more research is needed to fully understand the cause.