Right!
If the population is not isolated a particular gene can suddenly get introduced into the population with a high frequency and mess up the equilibrium. Similarly, Emigration (a group of individual leaving the population) could result in sudden elimination of certain genes, which will also have a similar effect.