Vitamins generally play an important role in keeping hair healthy, and shortages in specific types can result in thinning hair or baldness.