Yes, you can set the Apple ID and set the passwords when you boot up your device. You can always use this to set it.
The most prominent reason is that you can use the Apple devices in your control to your fullest potential.
Verify yourself and then you will get to change the password of your Apple ID on your iPhone. You can now do it.