The way this works is that your phone stops all forms of communication with the mobile network when you enter airplane mode. This includes incoming SMS messages, but the network will still queue all messages that are sent to you and deliver them once you turn the phone back on.