Yes. A factory reset clears system data, user data, settings, and configurations. A “factory reset” reverts your iPhone to the state it was in when it left the factory and will have you set it up as a new device.