In other words, you can't exercise away an unhealthy life style.
That's very similar to diet. In fact, the big 3 (diet, exercise, and sleep) taken together are far greater than the sum of their parts.
As a developer with a full time job, and side projects, I can easily find myself sitting in a chair for 12+ hours a day. I recently purchased a standing desk, and will be using a timer to remind myself when to break for 15-20 minutes for outdoor exercise.
I have forced myself to limit eating out to once per week. And use a sleep tracker to track my sleep, holding myself to getting the right amount, on average, every month.