Better to have a GOOD BOSS in a bad company  rather than bad boss in a good company

A bad boss can make your job bad even in a very good company – they will micromanage you, blame you, and make your life miserable. A good boss will stand up for you, will trust you, will listen to you, will make a yours a good job even in a weak company. Better to have a GOOD BOSS in a bad company, rather than a BAD BOSS in a good company ! Agree ?