Not necessarily, but it is highly advised. Airtight lids will keep your dog's food fresher than non-airtight lids. But it is entirely possible to use a non-airtight container if you are only storing small amounts of food at a time that will be eaten quickly. A multi-pet household would benefit better from a well-sealed container, as they would be more likely to need to store larger amounts of food for longer periods.