Yes. That is the correct way to set up the VXLAN.
VXLANs work, while VLANs do not, because VXLANs encapsulate the traffic they carry (think VPN, but without the encryption).
VLANs tag each packet (actually, they are frames, but you get the idea), and all the network gear between the Proxmox...