Help me out here

So I'm suppose to get my period next week, but last night (Tuesday) I had like 5 minutes worth of bright red blood. So I just assumed I was starting my period early. But I went back a few minutes later and found it stopped. Never happened before, I am on the pill. I take it religiously. And I had sex Sunday night. Was it just some sort of spotting?