How to avoid gaining weight ?

Is there any way to avoid gaining weight ?? I’m a little concerned about it. Does Zoloft cause weight gain or is it just the increased cravings ?