A sentence expresses a complete meaning. The meaning of every morpheme must be memorized. However, the meaning of every sentence is predictable given the parts.
Principle of Compositionality
The meaning of the whole sentence is the meaning of the parts (syntactic categories) plus how they are combined (syntactic rules).