In L.A. Noire, there are many moments during cases where killing suspects and assailants is simply part of the story. You can also harm innocent people, but doing so during a case will count as a failure.
Even accidental deaths, such as running over innocent bystanders with your car, can cost you and lower your five-star rating. However, these penalties do not apply when you are in free roam, where you can explore without those consequences.