This is true!
Linguistic semantics, especially the today's leading semantic theories treat the meanings of the sentence as it's composed of the meanings of the single words. However, some forms of semantics also study the meanings of single words, not only in grammatical structures.