you can't make an omelette without breaking eggs
In order to achieve something, it is inevitable and necessary that some mistakes are made or some sacrifices must occur.
It was remarked to him that he had caused the death of a great many persons. Yes, he replied, omlets are not made without breaking eggs.