Virtual machine

In this video from freeCodeCamp, i saw the tutor using a virtual machine but he didn’t tell us to install. Should i install to test my code?

Thank you!