Restoring Time Machine backup on new MacBook with old password
I had an old macbook pro that has since died but the hard drive was backed up to time machine. I have a brand new Macbook air and I can restore my old hard drive onto it. However, I cannot remember my login for my old macbook pro. If I use time machine, will it use this same old login password? And if so, is there any way to change it? Complicating matters is that I don't have an iphone anymore. I only have a google phone. And my new mac computer is the only mac product that I own.
Thank you for your help!
[Re-Titled by Moderator]