In a sealed container in the cupboard?
Are you channeling your best self with this comment? (If you're not sure, check out our Code of Conduct.)
Yes, for at least a couple months, maybe more if your cabinet is cool. Longer than that, I'd move it to the freezer, where it'll keep for a year or more if tightly sealed.
...if it is commercially prepared.