Pregnant

I had unprotected sex with my boyfriend on the 20th of November and the 16th of November it was unprotected and my period isn't due till the end of the month what should I do, when should I take a test