Im making a potato cannon can i use hot glue to seal up the wholes were the wires for spark generator go?

Yeah you can use hot glue. I have used epoxy resin and epoxy putty. The putty was the easiest to use and didn't break with the force.