Yes, it did. Gellner was active in several leftist causes throughout his career, and he was a founding member of the New Left Review. He also wrote several books on politics, including The Ideology of Modernisation (1964) and Nations and Nationalism (1983).
The Enlightened Explorer: Unraveling the Legacy of Ernest Gellner