Yes baby food is allowed on board the flight in reasonable quantities to allow your baby to eat.
You can also bring some formula or breast milk on board the plane to feed your baby with so you don't have to worry about not being able to feed your baby.
You can request some water for your babies formula if needed from the flight attendant.
You can also bring jar baby food and baby food pouches on the plane in your carry on to feed the baby as long as it's in reasonable quantities to feed your baby enough to get through the flight.