Need some information

Cera

So my boyfriend an I had sex unprotected and my period is on the 18th of this month. I haven't been feeling so good. An I was fine after the sex until the next day. The next day I felt really dizzy. Today I felt like was going to puke. I'm also having pains in my stomach. Should I take a pregnancy test and when.