I went into preterm labor at 32 weeks and they told me no sex for the rest of pregnancy. I highly suggest not too but I still did but we were careful and I haven't had any problems
I was told no sex during pregnancy, I didn't but that's because my placenta was right on the other side of my cervix (placenta previa).... I wouldn't, there is a reason they told you not to