Hot glue is fine, just make sure there are no residual glue threads/strings when you're done. Make sure your joined points are structurally sound and the glue adheres to the branches well. Over time with the branches expanding and contracting from moisture, your glue might fail. Like they say, a picture is worth a thousand words. Post up a pic of your project, so we can see what you're gluing.