Is it a good practice to use resistors for MCU inputs for this case?
Assuming the MCU pin will be damaged/destroyed if configured as Output, when externally forced to some fixed level, yes, you should insert 10Kohm resistor in the pin's PCB trace.

Do not configure the pin with any on-chip pullup or pulldown current.