I'm using a slide switch that has three pins. I know that the central pin is suposed to connect to a pin on the board to want to switch on/off, but I want the two to be connected to the same switch since they need to turn on at the same time and both are connected to the same power source. Do I need to connect the same pin from the different boards to the central pin?
Yes.