When should i test?

I'm currently dealing with AF which showed up sunday, I had sex last Wednesday and my so didn't pull out. When should I test? Or could i have even gotten pregnant so close to getting my period?