If you clean them well, why not !
Make sure you have no sharp edges and also leave no gaps large enough for a head to squeeze in. A snake head, lol.
Also let the glue fumes air out a bit, and if you use large rocks, make sure they can't come loose and fall on the snake..