If you can make a water tight barrier between the snake and the UTH then yes. A good thermostat is extremely important if you are going to put the UTH inside the cage.
The most important things that you need to make sure of are that the UTH stays the right temperature, and that it cannot get wet/moved around.