Hello there,
Yes they will be automatically migrated if the configurations are right.
If one of the hosts (which are called nodes) within a cluster fails, then the VMs that were running on the failed host migrate (failover) to other healthy hosts.
A failover cluster is a group of independent computers that work together to increase the availability and scalability of clustered roles (formerly called clustered applications and services). The clustered servers (called nodes) are connected by physical cables and by software.
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer--