You can unlock your Android phone even if you've forgotten the passcode, but you'll usually need to factory reset the phone.
Your passwords can be stored on an Android phone in your Google Chrome app, which is linked to your Google account.