It’s not the years, it’s the hard mileage. That goes for people, too.
An old airframe is safe if properly maintained. A newer airframe not properly maintained is not safe.