Yes, once the return
statement is executed, the entire function is exited at that very point.
Just imagine what would happen if it did not and continued looping, and executing that return
statement each time? It would invalidate it's meaning of returning a value when you think about it.