when can I test

I had sex on the 22nd for like mins and scared I'm pregnant, no condom was used. But my period is due may 31st. Could I text today ? Would it come positive if I was pregnant?