yes, you can use the rpi gpio as a switch. i like reed switches because it feels like it's wireless, but requires a magnet on hand. you can also have wifi, rf, lora, homekit(control it with siri), bluetooth, capacitive touch switches.... two bare wires you twist together lol. pretty much...