Im starting new birth control

I’ve been on the pill for a little and I’m bleeding 98% of the time so I wanted to switch to the depo (I think that’s how you spell it) shot. If I do will I be more protected during unprotected sex and can he cum inside of me? If so how long will I have to wait til I can have unprotected sex?