Am I pregnant

I have had sex with my bf before and I just had my period a few days ago and I haven't had any spotting since, but a few hours after we had sex I started bleeding what is going on I am really scared. I don't want to be pregnant. We did use a condom and I just went on the pill about two weeks ago