Theoretically that's how they originate. Enough people need to agree in order to create the institutional structure, and then once it's created enough people need to agree in order to make it function according to the established guidelines.
Then there's another layer of complexity when you get into enforcement. If people violate the critical guidelines and safeguards, those things need to be enforced or else they're meaningless. And in order for a nation to be "real" it needs to accepted and recognized by enough people, which is another form of mutual agreement. In new nations that's a bit harder to manage unless it has the benefit of widespread support.
In the grand scheme of things though, originations of new nations are somewhat rare thing. Most people are born into already-established nations, and live their whole lives in already-established nations, and never have to witness the uncertainty and chaos that tends to accompany transitional periods when one nation dies and another is born in its place, unless that transition is well-managed which is by no means a guarantee.
So in practice most people never have to think about how to form nations, because most nations are already formed.
But anyway, what does any of that have to do with what was said previously? I still don't understand your first comment.