Question: How long did many of the Germans live in the eastern Europe countries before being expelled?
Sentence: Many of those had inhabited these lands for centuries, developing a unique culture.
Answer in sentence: yes