The transmission of radio waves is the transmission of electromagnetic fields, and it can also be transmitted in a vacuum environment regardless of the medium.
Because there is no air on the surface of the moon, we can only rely on radio, not voice communication directly.