Yes, you can store a mattress in a plastic bag. However, it is important to make sure that the bag is breathable, so that the mattress can still breathe and prevent mold and mildew from forming. You can also use a mattress bag with a zipper or a vacuum sealer bag to help keep the mattress from getting dirty or damaged.