Because damage remains marked on a creature until the damage is removed as the turn ends, nonlethal damage dealt to Pirates you control may become lethal if Corsair Captain leaves the battlefield during that turn.