Gerenciamento das configurações, segurança e privacidade da conta pessoal do Outlook.com
Yes, Rafael. That’s correct.
If an attacker generated a recovery code on your Microsoft account, you can immediately invalidate that old code by generating another code.
A new recovery code will be generated, and the old one becomes invalid instantly.
Only the latest recovery code is valid. So once you generate a new one, any older code, even if stolen, becomes useless.
If you’re unsure whether one was generated without your knowledge, replacing it now is the safest move.
Please also review this link
If you've already done the following:
- Changed your password
Secured your recovery email and phone number
Removed any unrecognized trusted devices
Signed out of all sessions and devices
Regenerated the recovery code
Then yes, you can be assured that your Microsoft account is now secure and protected.
Even if someone had access before, they can no longer get in. Recovery codes only work if they are still valid, and once you generate a new one, any old code is automatically revoked.
Just remember to keep your recovery code stored safely offline, and keep an eye on your recent activity once in a while for peace of mind.