Yep - good spot by andset1191 - putting it into flight-safe mode stops it being a "mobile phone" and turns it into an "electronic device" (and don't forget that an electronic device needs to be turned off for t/o and landing.)
As long as there's no rule that "electronic devices" need to be turned off before leaving the terminal, you should be fine.