Virtual Machines are configured with a certan Compatibility Mode (Virtual Hardware Version). As long as the VM's hardware version is supported by ESXi 6.5, you will be able to run such a VM on both ESXi versions.
However, keep in mind vCenter Server 8.0 does not support ESXi 6.5, just in case your question is about vMotion!
André