Will UE work on my Mac Studio M2 Max?

Can I use my Mac Studio M2 Max to learn UE? Or do I need to invest in something else. I definitely want to use ray tracing eventually. Mac M2 pros and cons?