Pregnancy Test

I'm sorry this is such a basic question! but I was just wondering how soon I could take a pregnancy test after sex? I don't think I'm pregnant because we don't know if my SO came, and it's been days after my fertile window ended and I'm 7 days due to start my period.. any other advice besides the pregnancy test? thank you ladies!