You cannot buy SpaceX stock from stock exchanges. Since SpaceX is still a private company, it's not available in the public stock market. But that doesn't mean it will never be available.