Many players have done it. Pat Riley and Phil Jackson were NBA players who excelled as coaches and executives.
The number of stars who can do it is far smaller. Many depart the game altogether and seek out less-stressful streams of income, like commentating or motivational speaking.