Yes, but the function you want to use doesn't might not. According to MSDN, NTQuerySystemInformation may be altered or unavailable in future versions of Windows. You should use GetSystemInfo instead, which is in Kernel32.dll and available from Windows 2000 and up.
You really should learn to check MSDN regarding API calls before you use them. And, if you did so, you should learn to listen, as once it's deprecated MS is free to remove it from future NTDLL files in updates (although they don't typically do so). Choosing to intentionally use a deprecated function when there is a viable and supported alternative is always a bad idea.