This is correct.
If a realm has two cities, the capital could secede and join a bordering realm (as per duchy borders). If a realm only has one city, the capital, that city/duchy cannot secede at all.
If a city is not the capital, it can either join a neighboring realm or form a new one.