Yes. You can purchase a domain name directly from Shopify. But if you already have one from a third-party provider (which is probably the case when you migrate a store), you can add it to your Shopify account.
There are two ways you can add a domain name to Shopify:
Connect it to your account
Transfer it to Shopify
You can have up to 20 domains and subdomains associated with your account.