Comparing Co-ops to Non-profits

Forgive me if this is a bit ignorant, but I have an interesting comparative question. Would the model of NPs that we see today be comparable to what a socialist co-op might be? Since as their name implies, NPs don’t have profits, they just pay their employees. Is this somewhat similar to what a co-op might look like?