Is a pullup resistor always required for a switch?