Is baby food okay for my dogs?

I work at a food bank and it got overstocked with baby food so my supervisor said we can take some home otherwise it would go in the trash. I took a couple jars for my dogs, is it okay for them to eat? I'd think so....