If your food fits in your carry-on as you enter security, and your liquid/liquid-ish items meet the 3-1-1 rule, have at it. Once you’re through security, you can feel free to stock up on as much food and drink as you’d like, as long as it fits underneath the airplane seat in front of you at the time of take-off.