As a developer, yes. Ive been working in web dev for a decade, but have been a engineer for two decades.
When I joined my job, they were maintaining WordPress sites that were built in 2012 and hasn't been touched since. When I updated them to the latest WordPress, nothing broke. The WP team (which is also open-source) are fantastic at ensuring they don't break the internet. The major problems was security issues and plugins no longer being supported. But in terms of functionality, it was pretty solid.
Treat your WordPress site like you would a phone, a OS, a TV. It's something that has a window of 5-10 years. You can absolutely use it longer, but you will start to see it degrade. And in 5-10 years, it might be faster to spin up a brand new site than it is to patch your site up over and over.