Unprotected sex

Miranda
How long after you have sex can you take a pregnancy test? It's been 4 days