Just as everything in life, everything in moderation. Yes, spending time in the sun can help promote healthy hair growth, but too much of a good thing is a real risk with the sun. When you spend time in the sun, it causes your body to begin making Vitamin D.
This is why many people with a vitamin D deficiency are often encouraged to spend a little bit of time in the sun every day. Vitamin D is good for hair growth so spending a little bit of time in the sun can be helpful. However, if you spend too much time in the sun, it can really damage your hair.