Sex during pregnancy question

Is it safe if the male ejaculates inside the female when she’s pregnant ? Does it affect the fetus or pregnancy ?