You know what else might cure baldness? A healthy diet and exercise. ¯\_(ツ)_/¯
Stress can accelerate baldness, and a healthy diet and exercise can reduce stress, but I've read no scientific literature shows diet and exercise prevents male pattern baldness.