In some occasions, if the odd is very much against their favor, the bandits can actually surrender and let you recruit them without a fight after you picked the "yield or fight" option, or in one other way, you can "free" them from their captors and recruit them. But you can't recruit them from hideouts like you do from villages or towns.