Sure, why not? Try it out (for temps.), might need some adjustments that we can't tell "from here" but I see no reason it wouldn't work. I have heard of people
converting closets to house snakes...the only issue is giving them some daylight (real or artificial) so they have a photoperiod.