I've had it happen, mainly on accident. I had a rock covered in zoanthids leaning against my back wall and slowly the started to creep up the wall.
I've glued palys onto the wall a few times and had luck with them growing as well. I've definitely noticed that zoanthids and palys grew slower for me on the tank glass than on live rock.