Of course. If we were not allowed the negative consequences of our environment and actions, we could not really have dominion over it nor have free will.
It'd be like giving a car to your kid but never letting him drive it because he might hurt himself. You don’t learn anything that way.
But I get your point. You don’t blame your dad for giving you the car when you crash it while screwing up.