motorola – Will my phone be unlocked after it factory resets itself?

I forgot the password of my phone, and it says after 4 more failed attempts that it will be wiped clean. If that happens, will my phone be unlocked and ready for use again? I really don’t care about the data on it, because everything I had is easy to get back (mainly just social media apps like instagram/discord).

Any sort of help would be appreciated to the fullest, because I just want to be able to use my phone again.