I still own the 24C/32GB M1 Max, and yes it is fine - except in anything with 3D or AI/LLMs, where it shows limitations. Would I still buy one in 2026? No, as the M2 generation is not much more expensive, but got noticeable improvements, doubling the efficency cores, having more GPU cores, larger L2 Caches, an overall better GPU scaling of the Max chip (noticeable in Blender for example, where the speed improved by 2x even without Raytracing cores), next to HDMI 2.1 and better Wifi and Bluetooth. And one year longer software support.
Personally, I will sell my M1 Max this year and either go for a 2nd-hand M3 Max or wait a bit longer to the M6-release and get a discountent M5 Pro/Max model.
If you do coding/CPU focused task, a M2 Pro will fit you very well. And you can get them rather cheap nowadays, especially since the cooling of the 14" model is fine for the Pro chips. If you want GPU = Max Chip, go for a 16" model.