Is there a connection? I certainly think so.
Sharing food bonds people and software development is a very social activity. Good teams are always greater than sum of their parts.
Over the years I noticed that food makes Software developers especially happy. A nice collection of snacks in the team area is the perfect destination when you have been coding for a bit and need a break. Also a good for small talk. Its even better if team members make small contributions to the communal snacks !
Another small step towards a happier workplace.