If you are talking about the programming assignment for prof. Mueller "catch it" then yes.
You will have the whole code in main in a loop and run while it is up.
It seems I misread the question as while loops instead of do/while loops. Please look at prof. Mueller's answer below.
True, you need to use one big loop in the main method, but it can be a while loop. You are not required to use a do/while loop.