This is false, it's hard to cool things in space. Space (vacuum) is a very good insulator.
3 are ways to cool things (lose energy):
- Conduction
- Convection
- Radiation
In space, only radiation works, and it's the least efficient of those 3 options.