Arduino Setup/Loops

Can I put a loop in the void setup? Like a "while" loop?

I'm trying to make it so that my program waits for the push button of my rotary encoder before proceeding, so wanted to put that in the setup.

The Arduino is great for learning-by-doing. It is usually quicker to write a short test program than to ask questions on the Forum.

(And I am NOT trying to discourage questions - just trying to encourage experimenting).

...R