Spotted

I spotted a little after having sex. Im recently on the depo shot, that’s never happened before. Does it have to do with the birth control?