No. Osteoporosis is the thinning of bone tissue and loss of bone density over time, not the lack or abundance of sunlight. Even though vitamin D is important for people over the age of 50, sunlight doesn't support enough development of it through the skin to be a a viable source.