Education proceeds ultimately from the patterns furnished by institutions, customs, and laws. Only in a just state will these be such as to give the right education.
(Source: Democracy and Education By John Dewey)
I think the second sentence means that the patterns (=these) will give the right education only in a just state. Did I understand the sentence correctly? Could you please help me clarify it?