As long as both boards are JAMMA you should be able to just swap the game boards.
The CPS II refers to the class of board. Like MVS, Neo Geo, etc, just the type of board.
Now, whether or not you have enough buttons or the right kind of harness to connect the other buttons outside of the JAMMA standard is another story.