Idk what’s wrong (TMI)

So I am 17. My boyfriend and I have protected sex. I’m on the pill. We’ve had unprotected sex before but he always pulls out. So we had sex on the 16th. He was wearing a condom and when he was pulling out there was blood on the condom. I was freaking out cause I wasn’t due for like 2 weeks. Well since then I’ve been bleeding and it’s like a dark brown color. And yesterday I thought I was done but today when I got up I still had this brown color but not a lot. Idk what’s wrong.