Yes, as long as the tub was large enough to provide a decent gradient since corn snakes like to run a little cooler.