Although it is discouraged to bring food on board, you are allowed to bring your own food snacks or non perishable items if you prefer. There is so much food provided onboard, bringing your own food isn't really necessary unless you're quite picky or have dietary restrictions.