Real refrigerators actually work with liquids that go into gases so use the latent heat of the liquid, so it doesn't really work like the Joule-Thomsonexpansion. So this is real.
If the wellhead pressure exceeds that of the pipeline, then the gas can be passed through a choke or throttled in a constant-enthalpy Joule-Thomsonexpansion to provide cooling.