If you have legacy access, you have access to the Apple Account data, and Activation Lock is removed:
Apple reviews access requests from Legacy Contacts and approves access to a deceased person’s data only after verifying this information. When your request is approved, you receive a special legacy contact Apple Account to access the account data. The account holder’s original Apple Account no longer works, and Activation Lock is removed on any devices that use their Apple Account.
You’ll have access to the legacy account for a limited time — three years from when the first legacy account request is approved — after which the legacy account is permanently deleted. Please note that if your loved one added more than one Legacy Contact, the other contacts may also access the legacy account and make decisions about account data, including permanently deleting it.
Save what data you want to preserve, etc.