Not necessarily. When we had hens much of their food was bought in and that had to be grown, moved to be milled, moved to be sold and I had to make regular trips to buy it - so food miles could well be more than a battery farm egg.
When we get more hens then along with what they forage around...