While I agree that there are far more elegant ways to do this, You can still cool a room this way and not disobey the laws of Thermodynamics.
The heat generated by the Fridge stays in the Kitchen. Close the door and now you have effectively transfered heat from the cool room (bedroom or livingroom) to the kitchen. It is now far easier to relax.
Think it through before calling someone a moron.