Yes, you can be hacked through a virtual machine. There are a few ways that this can happen:
1. If the virtual machine is not properly configured, it can be easier for hackers to gain access.
2. If the virtual machine is running on a system that has already been compromised, the hacker may be able to access the virtual machine as well.
3. Hackers can also target the virtualization software itself in order to gain access to the virtual machine.
To prevent being hacked through a virtual machine, it is important to keep the virtual machine properly configured and up to date. Additionally, it is important to run the virtual machine on a secure system.