Pregnancy test?

Christa
How soon after having sex can you take a pregnancy test with any chance of a correct answer if you don't track your period? I have a friend who found out that she had unprotected sex on the 4th of this month because she had been drinking but doesn't track her period...