Spotting!

I had unprotected sex 3 weeks ago but he said he pulled out. Last week I was supposed to have my period, period started on Monday last week and hurt terribly bad and only stuck around for 3 days. Now I'm spotting a dark brown a lot. What's happening?