Both, the mother side and the father side can affect your male pattern baldness if you're a biological family member of them. If only one person in your family is bald, you can risking getting bald, but it isn't a very high risk to getting bald. You have a chance to keeping your hair. But if several family members (e.g. from both sides) are bald and the balding gene are dominant (strong), you have a higher chance to be bald. It exists difference methods to avoid baldness, some are classical tricks and other is extreme ones. (I'm not recommending the extreme ones, but mention it anyway because it's a possibility.)
Methods to "avoid" balding:- Wigs/toupee (You're still bald, but it hides your baldness.)
- Hair transplant (It's expensive and have some risks. But it might work for you if you're turning bald)
- Which hormones you receives (I know this one is extreme, but it's a possibility. Without male hormones, you wouldn't get bald. But it's kinda your choice, it's testosterone VS estrogen.)
Explanation why male pattern baldness occur.
https://en.wikipedia.org/wiki/Pattern_hair_lossThe puberty isn't a buffet for cis or trans people. Cis people can't choice and pick what they want or not, nor can transgender people pick. You receives both features which you may find positive and negative. You can simply not pick your genes either. But you can in some way choice a bit; between female features with the head full of hair VS male puberty - but risking going bald. Most cis men hasn't that opportunity. If I had a choice, I would rather feeling comfortable in my own skin - but risking going bald than being stuck how I am now.