is it normal?

I got on the depo shot a few months ago and the past month every time I have sex I start bleeding but it's only during  sex and when i get my period I have it for around 12 days.. is it because of the shot or something else