If your VM is correctly setup you can do anything you like to it , without any risk to the host system.
The only exception I can think of is possibly if you have enabled shared folders , clipboard , drag-and-drop etc.
Other than that , feel free to go nutso .
You can utterly trash the VM and be up and running again in mere seconds .... such great fun !
In Linux I like to dream up the most stupidly dangerous commands possible , and then execute them ( as root of course
)