Is it safe to download games like roblox and minecraft?

My niece wants to play, nut I don't want to download it then end up with a virus

Roblox and Minecraft are perfectly safe.

Yo should be fine

The games themselves are fine.

It's when you try to download third party tools with the promise of "free" premium currency where you start getting into problems such as malware.