Yes, foods rich in vitamin A like carrots, spinach, and sweet potatoes can help prevent xerophthalmia.