You can carry out the pregnancy tests from the first day of a missed period. In case you do not know when is your next period due, you can do the test for at least 21 days after you had the unprotected sexual intercourse.