Switching on airplane mode might switch off wifi, but "being in airplane mode" does not mean wifi is off, because wifi is still allowed in airplane mode.
I'm just saying this here because I thought for quite some time that airplane mode means no radio signals from the phone.