Depends entirely on your firmware. There you define which pin does what. Easiest move is probably to just replace the pin definition for the heated bed.
When operating 24 V make sure you have the 2k2 resistor soldered in (red-red-red), else the indicator LED will blow (but the remaining switch will continue to work).
When operating 24 V make sure you have the 2k2 resistor soldered in (red-red-red), else the indicator LED will blow (but the remaining switch will continue to work).