By any chance, did you mean the MacBook Pro (13-inch, M2, 2022)? That is a notebook computer which shipped with macOS 12.4 (Monterey). It is compatible with Ventura, Sonoma, and Sequoia, and will be able to run Tahoe.
As D.I. Johnson pointed out, the Mac Pro (2012) and Mac Pro Server (Mid 2012) are high-end (by 2012 standards) desktop (and/or rack mount) computers that cannot run anything higher than macOS 10.14 (Mojave).
----------
Ventura is currently one of the "most recent three", and currently receives the latest production versions of Safari – although it is not eligible to run the current versions of Pages, Numbers, Keynote, and GarageBand.
When Tahoe comes out this fall, Ventura will no longer get the latest releases of Safari, and some big commercial developers like Adobe and Microsoft may abandon support for Ventura. If you have a M2 MacBook Pro, you may want to consider upgrading to Sequoia now, or to Tahoe when it comes out.
Update macOS on Mac - Apple Support