Yes you can use modifiers. Here’s an extensive list of macros that do:
https://us.forums.blizzard.com/en/wow/t/macros-condensing-your-physical-keys/678238
This particular example however will not work but that’s because SHIFT modifies which key Windows interprets when combined with Num keys and not because of anything related to the game itself.