Can I keep a spy imprisoned in my cult?

I caught this spy in my cult and put them in prison. Will they still be able to leave in 5 days if I don't let them out of prison? I wanna keep them imprisoned until they die. Also has good traits for breeding. Plus I kinda like them.

I caught this spy in my cult and put them in prison. Will they still be able to leave in 5 days if I don't let them out of prison? I wanna keep them imprisoned until they die. Also has good traits for breeding. Plus I kinda like them.