A woman can achieve a successful pregnancy immediately after a miscarriage. However, doctors recommend abstaining from sexual intercourse for 2 weeks after a miscarriage to avoid infection.