Speaking as someone who studied math, I'd say no. Even in math (long the most male-exclusive of the STEM fields) there are now foids basically everywhere up and down the hierarchy. As a (full) professor you'd be inevitably required to supervise and to collaborate with foids. This in turn would mean being drawn into their interpersonal dynamics and petty office politics. Being in academia, you would additionally have to toe the party line concerning wokeness, feminism, etc., or risk being cancelled. If you want to work in an (almost) male-only environment, you could become an oil-rigger or something like that.