Bleeding after sex

So I had sex yesterday and I've started bleeding browny blood. I'm on the pill so could it be related to that? Last month this happened and the doc said it was just the pill however I'm not sure if it may be linked to sex? Has this ever happened to you?