Could i be pregnant or did i have a miscarriage

I had unprotected sex with my boyfriend on may 13 14 and 15. My period usually starts on 2nd this time was on the 1st. My period usually last 5 days. It lasted 4 day and 4 days today i spotted like brown. Today i have a huge headache, my back hurts, and i been really tired/sleepy and in a very bad mood.