Question about pregnancy ..

Alyssa
How long do I have to wait before I can take a pregnancy test if I had unprotected sex on the 4th .