There might be a situation, where you will need to close your existing web hosting provider and move to a new web hosting provider. Of course, Shopify is cloud hosted, so none of the files or assets are hosted in your web hosting provider server,
but you will still need to update the DNS records at your domain registrar panel and your web hosting provider to make sure, the domain name servers are pointing to your new web hosting provider IP.
The very first step is to create the A record and CNAME record in your new web hosting provider as stated below and then change the name servers in your domain registrar.
So, the domain will resolve to your new web host and it will redirect it to the shopify cloud hosted store via shopify IP A record.