In other words, all electromagnetic radiation behaves in the same way, regardless of how it was produced. This is the same for sound too. Suppose that the sound emitter was moving towards you. Then the wave would travel towards you, and the wavelength would appear to be shorter than if the emitter was standing still. Called the Doppler effect.
Sonic booms occur when an object is travelling at the speed of sound.
The object is producing waves faster than they can travel away and so the crests all overlap and the interference makes a large amplitude wave, i.e. louder. If the source of light is moving towards you then the light will be shifted in frequency towards the shorter blue wavelengths. If it is moving away from you then the light will be shifted to the red. Such an effect is found when looking at the wavelengths of light emitted from distance galaxies. For instance, helium produces certain wavelengths of light.