NAT for a domain name change

We have a customer on a .local domain with a local MSP. We are preparing to migrate the customer to an Azure VM DC and a real domain name. Someone told me that we could use NAT in the on-premise firewall to forward the .local to the real domain rather than changing the domain name on each PC. Is this possible, and if so, is it a good idea?