>>11911825well outside of this being a bad way to think about it
>when it decompresses the heat energy is spread over a higher volumeyes that's the basic principle. Obviously compressing and holding isn't a very efficient process so in reality a fridge runs a loop of continuously cycling material trough the compressor, heat exchanger and decompressor.
It's super easy to test/see at home with like a bicycle pump or a baking syringe or something. Block the air outlet and pump it down, hold for a while and then release the air and it should come out as cool air. Results might vary. Or even better if you have a air compressor with a tank. Compress the tank to full and touch it (you should feel it being warm/hot to the touch), then let it sit at the compressed state till it's all room temperature again, then release and the container and tube will go cold and it will blow out cool air.