Yes. There’s nothing OS-specific within the protocols of MySQL or Galera that would prevent this.
Since you are currently on CentOS, have you looked at RockyLinux? It’s backed by some of the original CentOS founders. And there’s an online migration tool from CentOS.