If you search this board for "hot glue" (with the quotes), you'll find this has been discussed many times. Some people will say it is fine, others that you should never use it.
I believe it is non-toxic, but also that it is not designed for use under water.
Whatever, you read your threads, and you make your decision.