Project 2 - Spaceship Interface - Digital Input Confusion...

"Any miswiring tho and you end up shorting 5V to who know what."

So is this basically a safety precaution in the book, for instance in case you setup pinmode(2, OUTPUT) instead of INPUT, then it won't short?