Pain during sex?

Jo
I got on the Depo shot 5 days ago (it was within the first 3 days of my period it went into effect immediately) but now every time SO and I have sex it hurts. Could the shot be the cause of this?