Yes, male pattern balding to be specific, is strongly related to male sex hormones, especially dihydrotestosterone, formed from testosterone.