It's generally okay to have sex while you are pregnant. Call your physician immediately if you: begin having bleeding or contractions; feel pain during sex; or think your bag of waters has broken. If you have a history of miscarriage or preterm labor, ask your physician for advice.