To prevent infection, sex isn't recommended for two weeks after a miscarriage. However, after that, if you feel emotionally and physically ready for pregnancy after miscarriage, you can try again after consulting with a doctor.