Depo and weight gain

I am going on the Depo shot next month and I wanted to know if there is anyway to prevent the weight gain that my doctor warned about?