Hair loss often results from stress, but frequent bouts of severe hair loss may be connected to illness or a nutritional deficiency. Science hasn't fully clarified the extent to which hair and vitamin D production mechanisms are related, but some research has shown that lower levels of vitamin D are associated with alopecia areata, an autoimmune disease that causes severe hair loss from the head and body.
So it might not be the long-awaited miracle cure for longer, fuller hair, but if you're suffering from hair loss and can rule out other vitamin deficiencies, contact your doctor and ask them to check your vitamin D levels. They can easily administer a blood test for this.