Multiple providers Terraform - DNS Zones

I am creating a dns zone in azure, and a contingency zone in gcp, and the same record that will be created in azure, will be created in gcp, in a production environment that is considered a good practice, even if my code can has more than 5000 lines.
What I am doing is right, I will have no problems in the future with this, could anyone tell me if I am right or wrong to do this?

I`m using Terraform v0.14.7

provider  "google" {
  credentials = file(var.credentials)
  project        = var.dns_zone.project_id
}

provider "azurerm" {
  features {}
}

resource "azurerm_dns_zone" "test" {
  name                = "proc.com.br"
  resource_group_name = var.resource_group_name
}

resource "google_dns_managed_zone" "test-dev" { 
  name         = "proc-zone"
  dns_name     = "proc.com.br."
  description  = "DNS zone for the example domain"
}  

resource "azurerm_dns_cname_record" "test" {
  name                               = "cloud"
  zone_name                     = azurerm_dns_zone.test.name
  resource_group_name = var.resource_group_name
  ttl                                      = 3600
  record                              = "contoso.com.br"
}

resource "google_dns_record_set" "a_test" {
  name                  = "foo.proc.com.br."
  managed_zone = google_dns_managed_zone.test-dev.name
  type                     = "CNAME"
  ttl                         = 3600
  rrdatas                = ["contoso.com.br."]
}