Can depo prevent you from losing weight?

I started depo shot at the beginning of 2017 and have gained 30 pounds since I’ve started it!! I’ve been eating 1,200 calories a day working out for about 30 mins a day(one rest day a week), and drinking 60 oz of water and my weight is still the exact same. Can still being on the shot prevent me from losing weight? Will I not lose the weight until I come off? My next shot is in Feb, but I’m telling my doctor I want off