It’s a very capable machine (I’m still on the M1, powering an ultrawide screen and a variety of intensive apps).
If you care about new models coming out soon, you can check https://buyersguide.macrumors.com/
(There’s a chance the M3 is about to be released)