That's true only to a limited extent. If it takes more inputs to produce a kg of food locally than it does to produce it further away and transport it, the latter may still be the better choice. I live in a temperate region with cold winters. Fruit such as apples and berries grows well here, but it all ripens at the same time (summer and fall), so it makes sense to preserve it (drying, freezing, canning, jams, not to mention wine, etc.). In a warmer climate, the same fruits can be produced year-round. So it makes sense for those regions to ship fresh fruit to my area when it's not in season here, and my area to ship preserved fruit to them. That's actually the most economical and energy-efficient use of resource.