It’s usually okay if you’re remapping one button with another, but if you use macro hardware or things like AHK to automate a process or basically perform more than one thing, they may catch you out.
It’s a grey area that should be considered very carefully.
I have used AutoHotKey for remapping the NumLock key since wotlk. I’m left-handed so I use the keypad for moving, spells etc, and the extra recoded button is a nice-to-have for me.
The proggie is in a grey zone. But as long as you feel safe with what you do you shouldn’t have any problem.