People often overeat when they start exercising, either because they're hungry from the exercise, or because they feel can indulge a bit as a reward.
My view is that most people should ignore exercise and fix their diet first, only easing in to an exercise routine slowly once they start to see weight loss results.