When should I take a preg test

I have unprotected sex on June 26 ,16 and I'm supposed to get my period on July 12. I want to know if I'm supposed to take a pregnancy test after I have my period? Or I could just do it now?