That's how I have mine setup. I built an enclosure with a low power switch and 240V LED that shows the compressor is on.
If the switch is on, and the pressure switch gets tripped, it activates the relay for the compressor.
Although, it was primarily that I wanted an overload for the motor, and...