Bleeding after sex

I just had sex with my boyfriend and when I went to the restroom I was bleeding but it was like brown.. This is the first time it happens and I don't think it's my period I still have a few days before it comes.. But why am I bleeding?