Find My iPhone - Erase iPhone?

Am I correct in thinking that if I log in to iCloud and use the Erase iPhone feature for my phone, it will turn remove the passcode, and deactivate Find My iPhone?

Thanks.

Added (1). Basically the phone doesn't turn on and I need to deactivate the passcode and deactivate Find My iPhone. I'm concerned that if I erase all data, Find My iPhone will still be active but the device will longer be linked to my iCloud in order to turn off Find My iPhone. I'm also concerned that if I turn off Find My iPhone first, I won't be able to factory restore the device in order to deactivate the passcode.

Basically the phone doesn't turn on and I need to deactivate the passcode and deactivate Find My iPhone. I'm concerned that if I erase all data, Find My iPhone will still be active but the device will longer be linked to my iCloud in order to turn off Find My iPhone. I'm also concerned that if I turn off Find My iPhone first, I won't be able to factory restore the device in order to deactivate the passcode.

Thanks. Correct, thats my understanding of it. Its wiped everything, for example if you sold it to someone and they couldnt use it because your icloud lock was still on it, that would reset it remotely. If stolen then you want to just put a remote password on it if you didn't have one, put in lost mode, and put a msg on the screen saying stolen (which they can't remove). As You are correct, when you forget the unlocked password you can do like you said to erase your iPhone remotely and your iPhone will go to its default settings.

You are correct, when you forget the unlocked password you can do like you said to erase your iPhone remotely and your iPhone will go to its default settings.