So what if you don't directly work on a product you consider unethical, but you know that others in the company do? Sure, you're not working on it directly, but you're keeping a company alive that does. But where else to work? What if the company you're working for isn't directly creating products you consider unethical, but is e.g. a customer at an unethical bank, or creates products that help companies that produce products you consider unethical?
And what if you work at/for such a company, but you're not a programmer, but e.g. a cleaner, are making ends meet, and you're lucky to have a job in the first place?