No, abstaining from things like alcohol and smoking mostly does that.
Exercise and healthy eating markedly improves quality of life at old age, but it doesn’t extend it by huge amounts.
For what it's worth obesity accounts for about 5-10 year shortening. Not dissimilar to smoking.
Sport is good for you. Extreme sports markedly cuts short average life expectancy and late quality of life. With your logic, that makes sports bad.
Edit: actually, I guess it depends on where you live. In America, obesity probably is the median..
There is this weird defense of obesity and being sedentary in western culture it's just inexplicable.
Interestingly we've just had the first case of manslaughter by obesity trial going on in the UK [1]. The mum has admitted manslaughter the dad is going to trial. Over death of their 16yo girl.
Most of it is on fruit flies and mice then takes a life time to test on humans!
What we do know is that being fit and exercising with some semblance of healthy eating helps people live a lot longer. But no one wants to do it.