This question was found on another forum and brought here for more discussion:
Absolutely not. Doing so can irreversibly damage your Control Hub and can provide an overall unsafe 12V power system on the robot. The only safe and legal way to power the Control Hub or Expansion Hub is through the XT30 ports on the hubs.
If the male connector on the Hub is unreliable, use a Power Distribution Block and obtain/create a male-to-male XT30 cable to provide power to the female XT30 connector on the Control/Expansion Hub instead. Both male and female XT30 connectors on the Control/Expansion Hub are electrically connected together. Your hubs will no longer be able to be used as power passthrough, but the Power Distribution Block essentially performs the same function.
Some recommendations such as using hot glue or some other kind of glue or stabilizing method to keep the XT30 housing connected might seem like a good idea, but these are actually VERY BAD ideas. The issue is that it’s not the XT30 housing between connectors that keeps the connection stable, it’s actually the metal contacts within the housings that maintains the physical connection. If the physical connection isn’t stable, then the metal contacts within the housings very likely are not making a reliable electrical connection either. If you hot glue the housing onto the Control/Expansion Hub, any kind of physical shock could cause a momentary separation in the metal contacts. To an outsider this could look like any number of problems (ESD, a short in the cabling, etc…) but in reality it’s a poor connection hidden by hot glue. Just don’t do it.