Not a problem at all. I did exactly this as a kid, bagging my cartridges up, and they still work fine today.
The main threats to old cartridges are heat, humidity, and physical damage rather than the bag itself. A cool, dry cupboard is the important part. It is still worth pulling a cartridge out occasionally to check the contacts and give them a gentle clean if needed.