Yes, but...
Why go through all that trouble of making sure it is secured?
Putting it between the glass and UTH eliminates ANY chances of it being moved, peed on or otherwise so there is really no point for it.
Your snake canīt mess with it if it is outside the enclosure.