Only assuming they have a Duke.
Huh?
No...you don't need to secede, or have your Duke change allegiance, to take your region and leave the realm. Every region lord can join another duchy at any time.
Also, barring temporary situations between position loss and appointment, every Lord has a Duke, always. There are no Imperial or duchyless regions anymore.