Yes. Scratch is a completely safe program that you can install on any computer. For the most part, the functions that are available in Scratch do not modify any system file on your computer. Aside from that, the latest version of Scratch also includes the ability to run any user-created program inside a virtual machine.