Yes, using “Find My iPhone” to unlock your iPhone passcode will erase all the data on your device. This is why it’s essential to have a recent backup of your data if you decide to go through this process.