Yup. I know someone who was a heroine addict and once he was sober from that he gained a lot of weight. Now he has focused all his energy on exercise and is a four time Ironman finisher and fitness freak, as well as a community leader.
We basically just replace one habit with another, so it's important to recognize our habits and know when to slow down or step back and evaluate what we are doing.