Switching from a different birth control

I recently switched birth control from IUD to Depo cause my IUD was coming out and having abnormal uterus bleeding for 2 weeks. But after a week being on me n my boyfriend of 7 years had unprotected sex and that was Thursday and Friday til now I been cramping and sick...I’m kinda worried if the medicine didn’t work in time or I’m just having side of effect