No, this isn’t allowed. You can’t alter the electrical components, not even to make it easier to mount them. And you certainly can’t do it to improve their performance.
Here’s the rule from the game manual:
It is therefore illegal to drill holes in the motor case.