As long as the TSA rules are met, you can bring snacks on a plane that are packed in Ziploc bags. TSA agents may ask you to remove food from your carry-on so they can be run through security separate from the rest of your carry-on.