Yes, light exposure can affect the freshness of coffee stored in a container. Light can degrade the quality of coffee beans by accelerating the oxidation process, leading to the loss of flavors and aromas. To maintain the freshness of coffee, it is best to store it in a cool, dark place in an airtight container to minimize exposure to light and oxygen.