Elon Musk would not have been looked upon kindly by anyone from star trek. Maybe Quark... but even then I'm sure he'd be shaking his head with a "143rd rule of acquisition: never let ego interfere with profits".
Even the antagonists would hate him for being so clumsy and amateurish in his evil.
No, there was that one episode of DS9 about selling weapons that firmly cemented that Quark would be disgusted by Elon Musk and not want to be associated with him.