No, it will not.
Passwords exist for a reason: the security of the owner and their data. It is incumbent on those setting passwords to do what they require to have access to them if they cannot remember them. Password security (as in the ability to manipulate them by the admin) has gotten progressively tighter over the years, and for good reason.
In the case of a Windows 10 computer if one does not have the password you can reinstall Windows 10. You can also extract data from the hard drive using another computer and connecting it as an external drive.
Brian - Windows 10 Home, 64-Bit, Version 1803, Build 17134
Explanations exist; they have existed for all time; there is always a well-known solution to every human problem — neat, plausible, and wrong.
~ H.L. Mencken, AKA The Sage of Baltimore