Pregnancy test

7 wks pp. No period yet but how long after sex can I take a pregnancy test?