Great idea! I do that for my medicines anyhow. I also rotate food frequently to make sure I’m cycling through it.
I also have gotten myself in the habit of not “stocking up” like I used to. Granted, when I had three hungry kids at home, that made more sense. But now that there’s just two of us in the house, I try to avoid buying too much, even if it is on sale, so I don’t end up having food past its expiration.
Also, I don’t think eating something past its expiration is a sin. Certainly if it looks or smells bad, stay away. But frequently the expiration date is a “best by” suggestion, not a “gone bad” warning.