Period and sex

So my period had stopped like 2 days ago but like brown stuff was coming out and I just had sex and after I started bleeding what could it be from could it be from my period bc on Saturday I was with a guy and he put his dick in me raw and I didn't ask for it but whatever that's beside the point why could I be bleeding after sex in freaking