Being firefighters, yes to some extent, because males are more likely to have acquired the physical strength needed to lift people out of burning buildings. But there are many female firefighters who excel in the profession too.
There is nothing about males that make them more suited to be doctors. We also can see that in the demographics in some countries (e.g. the UK), there is a roughly equal balance of female doctors to male doctors.
Having mathematical ability is linked to intelligence, not sex.