No, that was a boycott in protest of the Russian invasion of Afghanistan in 1979.
A lot of people forget that African countries boycotted the 1976 Montreal Olympics, because New Zealand was allowed in, despite having their Rugby team playing a game in South Africa.