Pregnancy test

How soon is it to test after having sex??