motorola – Will be phone be unlocked after it facotry resets itself?

I forgot my 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.