Is a pullup resistor always required for a switch?

This link might help you :- Inputs