Yes. You can assume a correct behavior. But, I suggest you to keep variable declarations outside loops.
To increase readability of your code try to put all the declarations you need at the beginning of the body (main or functions). Enjoy programming.