One of the wonderful lessons that the Camino may offer is that you are not obligated to any action. That said, some of the camino's loveliest Albergues offer communal meals, contributory meals or the opportunity to share. Generally, and I emphasise generally, Albergues that offer communal meals, shared kitchens or just the opportunity to eat and share with fellow pilgrims are where I will choose to stay whenever the opportunity arises.
That said your question is a difficult one to which to give a definitive answer. In the major cities and towns that we encounter along the Caminos there are multiple opportunities for sleeping and dining. In some of the more remote Pueblos there will be little choice or no choice at all.
I guess that the answer to your question is "it depends". It depends on where you are, what alternatives, if any, are available and, ultimately, whether you are hungry.