You sure can. You can even bring a pie. Just take your treats out of your carry-on while you’re going through security so that they won’t obscure the other items in your bag.