Heat can transfer via Conduction, Convection and Radiation. The vacuum of space may prevent the first two, but not loss of heat via Radiation. Infrared radiation to be precise. The heat loss is very slow, so yes at times it would be a miniature greenhouse.