Applications can program specific keys to perform actions. This is not uncommon and is usually limited to just a few keys. If a key appears "Locked" - in other words it doesn't perform its usual function - then the developer has either programmed it to perform some action in the program or to do nothing. The keyboard is still sending the keycode to the program, which is catching that keycode and handling it within the code. You can't reprogram what the program code is doing. So the answer is NO.
Realize there may be a reason why the developer has made the effort to program the key. No developer is going to spend their time programming keys just to be annoying. The keys may be so disruptive within the program that it would be necessary to end the program if they were used. Of course, you can do that.