that is actually depends on individuals. Sex is a natural, normal part of pregnancy -- if you're having a normal pregnancy. Penetration and intercourse’s movement won't harm the baby, who is protected by your abdomen and the uterus’ muscular walls. Your baby is also cushioned by the amniotic sac’s fluid. But in some cases, your doctor may advise you not to have sex if you have any of the following types of high-risk pregnancy: You're at risk for miscarriage or history of past miscarriages You're at risk for preterm labour (contractions before 37 weeks of pregnancy) You're having vaginal bleeding, discharge, or cramping without a known cause Your amniotic sac is leaking fluid or has ruptured membranes Your cervix has opened too early in pregnancy Your placenta is too low in the uterus You're expecting twins, triplets, or other "multiples" Keep in mind, if your doctor says "no sex," that may include anything that involves orgasm or sexual arousal, not just intercourse.
It is said that you should avoid having sex in the first trimester and the latter part of the third trimester.
it is better to have no sex until 2nd trimester