I doubt Musk would be interested in a mere government position where he has to act on the orders of a boss. Very few of those are open to elections in the first place, so he probably could have one if he just wants it. Apart from having a conflict of interest that would probably bar any reasonable president from offering one.