If immigration is giving your passport to the airline and most importantly waiting & confirming you’re on board, don’t know if I’d consider that voluntary
If the flight is non stop obviously
If not you’d have to check with the airline
Tbh
I can’t see immigration letting you go to any other...