Yes, the Sleep API stops the processing on your thread while its sleeping.
If you need a delay in the loop then there are other ways to do it like the Timer function in Excel.