That's the Musk Myth.. in reality SpaceX was built by Mike Griffin who (1) funded him through In-Q-Tel and DARPA (2) crafted the commercial crew program for him while he was NASA administrator.
He even went with him to Russia before SpaceX was founded,
> he kinda built it with his blood sweat and tears.
Irrelevant to being hired or kept on as the president of the company by the owners, of which Musk is only 17% (AFAICT). If more owners of the company do not want him as an employee (president, whatever), then they can fire him.
Whether that would be a good idea or not is something else. (Apple 'fired' Jobs in the 1980s.)
According to wiki, he has 47.4% equity and 78.3% voting control according to a 2020-dated filing. I would be surprised if either number has changed significantly since.