Yes. If a player’s coexisting units become the only units on a planet, that player gains control of the planet.
Until that happens, the player whose units triggered coexistence does not gain or retain control; if they already controlled the planet, the player they are now coexisting with gains control of it instead, exhausted.
Official Thunder’s Edge rulebook text for the coexist mechanic.