I agree - giving up smoking should come first.
I smoked for 25 years and recently started to feel very unhealthy. I couldn't even walk up a flight of stairs without huffing and puffing - terrible.
Concerned that I'd put on weight when I quit, (I was already overweight) I started eating...