New here got an Install question

I have the Katrina 240 kit can I just wire my compressor to the battery and use the supplied toggle switch as an on/off switch for it?