You'd need to also remove the keybinding of escape to quit if you did this, otherwise you'd have players accidentally quitting the game when all they were really trying to do was back out of the codex, or the settings menu, or missions, or character creation, or... etc.
As long as that gets done alongside the OP's suggested change, though, I've no particularly strong opinion either way.