Period help!!!

Recently my boyfriend and I had unprotected sex. It was nice and all and I was on the pill so I figured it was okay. But now I'm starting to feel kind of funny and it's 10 days BEFORE my period is supposed to come and I saw blood in my pee.. I don't know if I should turn to a test or if I'm stressing over spotting (which I've never gotten before) HELP!!!! And also, I've never had an early period. They've always been either a couple days late or on my actual start date..