Coffee machine wiring diagram
As said in the comments, it's most likely a circuit like this:







simulate this circuit &ndash; Schematic created using CircuitLab

Due to this design, the light will be on, whether the thermostat is on or of (if it exists in the circuit)

So yes, shorting the right terminals would give a nice short circuit.

I've also seen switches with four terminals. Two for a pure switch, and two for a pure light.