If I restore a mysql dump from one domain to another, would that be a problem?

Hi,
Can I restore nextcloud mysql dump from abc1.sample.com to abc2.sample.com, would I lost any data and settings?

BTW, I am using docker, not cPanel.

Thanks.

You can migrate a setup to a new server: https://docs.nextcloud.com/server/stable/admin_manual/maintenance/migrating.html