Anecdotally, I have absolutely ran off a bad diet. I burn ~150-250 calories a mile and have ran off 2000+ calories to eat what I wanted with no discernible increase in weight. Did this for years.
In hindsight, it’s much easier on one’s knees to adjust your diet.