Yes, as long as your containers fit TSA requirements. It’s not unusual for TSA agents to inspect carry-on luggage that contains prepared baby food, so make sure it’s easily accessible to optimize your time at security checkpoints. ;