Generally, the pregnancy is not detected after 5 days. However, if you have an irregular menstruation cycle and do not know when your period is due, it is best to wait until 21 days after having unprotected sexual intercourse.