Yes, both Generation 1 and Generation 2 virtual machines support secure boot. You can enable secure boot by going to the VM settings and selecting the "Security" tab. Then, check the box next to "Enable Secure Boot".