Yes, simply turn on airplane mode and turn the Wi-Fi on.  After you turn on airplane mode, you may notice that Wi-Fi automatically turns off.  You can turn on Wi-Fi again while in airplane mode.