The answer is yes, but you should definitely do it right especially if you're not good at wiring things, remember that the power cord is obviously high voltage and if you do it wrong and cause a short or short it to something like the coin door you can cause major harm to your house, yourself, and other players. (and obviously the machine too!)
If this is one of those that like plugs the molex into a connector sticking out of a metal power supply box, then I would definitely not bypass it as that sounds like a major pain in the ass. If it's just the plug into another "free" wire, then it would be easier but I would still just recommend doing it the correct way.