Is a pullup resistor always required for a switch?

This shows an input to a relay card.
You need to sink a few milliamps to GND at a Arduino side to energize a relay.
An open cct. on a IN input will not turn on a relay by accident.

.