I think a space heater in the closet *may* be a fire hazard. Other than that, I see no reason why not. My snake room is essentially a large closet I suppose.