Operation security question on Windows 10

Hi guys,

I'm using Windows 10. If I create separate user, does it mean if User-1 installs a malware/trojan , User-2 won't get affected? If not, how do I create separate windows version so if one side gets infected the other won't get affected.

Hope for your guidance, thank you!