Yes and no. When I was training new drivers I would tell them that should try to take advantage of delivery stops that have public restrooms and that they would not need to punch out while using them; however, if they are driving specifically to take a leak, that would be considered to be a break and they would need to punch out.
I also strongly encouraged them to "brown bag" it, especially during their first 30 days, but that if they did choose to buy their lunch that they were allowed to go up to one mile on either side of the main road to find someplace to eat; in other words, they couldn't drive more than a mile to get to their favorite lunch place. Lunch starts once you have secured the vehicle, not after you have used the bathroom, cleaned up and ordered your meal.
You should never operate a UPS vehicle while off the clock. We used to have drivers who would punch out before after their last delivery stop and before making their way back to the building to make sure that they were under 9.5. Getting in to an accident while driving off the clock is not something that you want to deal with.