Yes. The captor can release it by tapping the Release button in the Prison building. Captured Greatman will also be released automatically after 2 days.

But upon release, the Greatman's level will drop by 1 level.