It could easily die in the next year.
Or, may go on for the next 20. I have plenty of old Macs/Apples that are still running, 20+ years after their creation dates.
I helped my parents buy an iMac G4 last year as their first ever computer. I don't anticipate it will die any time soon. It can still run the latest Mac OS. It's reasonably speedy. It looks cool.
Go for it I say.