Glue won't work as well as solder when it comes to holding wires together, so it's not a great solution for connecting wires. However, if soldering isn't an option, you can use a conductive adhesive or wire glue. Just be aware that it probably won't work as well as solder for holding the wires together. Thanks!