From the Wikipedia article on Castration.
Castration prevents male pattern baldness if it is done before hair is lost, however, castration will not restore hair growth after hair has already been lost due to male pattern baldness.
And the punchline:
Castration is never recommended by medical doctors as a way to prevent or treat hair loss.
Why anyone had to put that in is beyond me.