Damage History

Is there EVER a time you would buy a car with a damaged history? And how do you know what damage was done to it? Like damage to the side door vs front or rear?