Some people do it this way, the problem is that probes tend to wander. If your thermostat probe is inside the tub, the movement of the snake can shift the probe and the heat tape can heat up in excess and cause thermal burns, not to mention its a fire hazard. Its up to you but the risks are higher this way.