Sure, you can migrate the database. I'd make sure that the versions of FusionAuth are the same.

Here's another similar topic: https://fusionauth.io/community/forum/topic/1091/migrating-users-from-one-server-to-another-how-to-do-it