No. That is one of the main security feaures. If you are sending the iPhone for an AppleCare+ replacement, it will be destroyed.
If you really want to erase the device, you should do so by logging on to iCloud.com. Select devices and opt to erase the iPhone in question.