Yes, electrically it will work.
Personally I think you would be better off cutting the end off of a cable, stripping the leads, and attaching the leads to the boards.
As you can see from the side by side pictures, the mini-b pins will be right over the USB-B pins.
I suppose you could add a piece of heavier wire from the mounting holes and use to secure a non-thru hole mini-b away closer to the side of the board.