Sure! The work week and similar working legislation is a form of negotiating for one’s own contracts. It’s just that people got together and negotiated for their contracts in a group, and then wrote down that rule so that we don’t have to go on strike like they did.
People getting together to negotiate is not incompatible with capitalism. It is actually forming monopolies, which socialists usually try to make illegal.
So I am still not sure what that example is supposed to demonstrate?