If you want to run 32-bit games that were designed for machines of that era – and for which no 64-bit updates have been released – that Mac might make sense as a platform for running. If you are in that boat, you likely already have those games (purchased for another Mac of similar age), and are just looking for a way to keep them running.
If you want to run current games and applications, that Mac is way too old. It will not be able to run any version of macOS later than Catalina. Catalina is several versions behind the "most recent three" (Ventura, Sonoma, Sequoia) that vendors like Adobe and Microsoft support.
Lots of games are "hungry" when it comes to CPU and GPU power. Even that 2012 MacBook Pro is a high-end 15" model with a 2.8 GHz Intel Core i7-3840QM and a NVIDIA GeForce GT 650M GPU, the CPU and GPU both compare poorly to the ones in an entry-level, "price point" M2 MacBook Air. We're talking about the Air scoring maybe 3x to 4x higher on single-core CPU performance, multi-core CPU performance, and GPU performance.
You'll find that basically nobody is writing new games that will run on that machine. Although Macs are not as much of a gaming platform as high-end Windows PCs are, you will find that there are a number of games that can run on a M2 MacBook Air, M3 MacBook Air, or M4 MacBook Pro. Including some designed for iPads.
My suggestion would be that if your goal is to run current applications – not to preserve vintage software – you'd be well-served to pass over that Mac in favor of a current one.