A study of more than 9,500 people found that the lessons learned through one popular activity can shape confidence and career outcomes for decades.