Is dual booting necessary or a virtual box on Windows just works?

I was daily driving Ubuntu+Windows on my Acer Nitro 7 for a month before starting my DevOps journey at KodKloud. After doing so I tried to switch to CentOS 7 but the installation failed and I corrupted my BIOS. I can still boot into Windows. So I just wanted to ask can I do DevOps on virtual box?

yes, you can use VirtualBox