you are absolutely right. Eating healthy is more important than exercise and the two together will lead to an overall improvement in health.
http://www.sciencedaily.com/releases/2012/10/121015142405.ht...
Though its a small sample and an extreme one at that, the contestants' diets accounted for approximately 65% of their weight loss.