Yes, and instead of focusing on improving your job skills in your spare time, you waste your life helping other people who truly need it. Bad candidate! System works as intended, I presume.
When a system does not explicitly optimize for ethics, it will produce unethical behavior due to optimization for another value, be that performance or profit.
Likewise if it optimized for multiple objective with different weights, the ones related to survival get the priority.
Unfortunately for us, survival of a company or AI is not survival of humanity.