What is the meaning of [You can’t make an omelette without breaking eggs]

It is hard to achieve something important without causing unpleasant effects.

Example: If I don’t slash people’s salaries, the company is going to go bankrupt. It’s unfortunate, but you can’t make an omelet without breaking eggs.