Can I use multi azure account?

Per this document Terraform Registry, azurerm directly use az command for plan/apply.

we have mutlti azure accounts, which use different AZURE_CONFIG_DIR for switch the az command operation, how does this works for terraform?

Thanks!