No, not if it involves a web browser. Most web sites today will not work on a 2012 web browser.
The PC stopped existing in isolation, for most useful tasks now, it needs an Internet connection.
I use a Thinkpad T530 for reasons that are very important to me. It is the only laptop that I have, so it is what I use for every manner of portable computing.
It still does all the things I want it to do, including using modern websites with modern browsers on modern operating systems (including Windows 11).
The T530 was released in June of 2012.
The 2012 computer running a modern linux install will still work fine. I'm talking more about the specs, specifically memory. I had 8gb of ram in my computer in 2012, the Macbook Neo released this year still has 8gb and is usable for modern day tasks.
We don't _need_ that much ram, we just found new things to do with more.