Envío, recepción y organización de correo electrónico en Outlook.com
Yes, according to the Microsoft account activity policy, if you have not logged into your account for more than two years, you will not be able to use the Account Recovery Form to recover your account.
However, for few exceptions, Microsoft keeps the account active on the servers even if you have not signed in within 2 year period. You can check the full expections here.
Reference: https://support.microsoft.com/help/7c0a9fa7-0982-b7c6-fd72-df852b63699f
Let me know if you still need more help.