The modern person who sticks to a healthy lifestyle while still having modern medicine for emergencies and misfortunes will surely live better than just about anyone in the past, but, that person is not the actual average. The average person nowadays has their health dragged down by modern lifestyle problems so much, that I'm not sure if they're better off than someone in the past[1], even with modern medicine
[1]: Cherry picking a pretty recent past, though. For example, the obesity epidemic was way less in full swing in 1970, but we already had modern sanitation, antibiotics, and vaccines by then, which eliminated the lions' share of illness. Once you go back before vaccines, it's a mixed bag. Still hard to say though, the diabetes epidemic is getting almost as bad as polio once was and trend lines keep pointing upwards.