Yes but bear in mind that Raspberry Pi OS is designed to run on Raspberry Pi hardware and is not officially supported to run on virtualization platforms like VMware and VirtualBox.
A popular option for running Raspberry Pi OS on a VM software is to use QEMU which can emulate the Raspberry Pi hardware.