should i take a test?

so my boyfriend and i had unprotected sex while i was on my period. i am also on birth control (the pill) . now i’m spotting and i’m not supposed to get my period for 7-8 days?? also before the spotting i was having a lot of white discharge and have had minor cramps and a small headaches. should i take a test or just wait it out? is it possible i’m pregnant?