Can’t expect most individuals to decline a paycheck. However you can organize workers at these kinds of workplaces for real leverage (collective rather than individual, just like ownership and management does)
I have seen real world people refuse morally dubious positions in tech. We are not talking about "going hungry" vs "salary". We are talking about "having very very high salary" vs "having very high salary" here.
It is absolutely ok to blame people who do immoral stuff for more money. Pick pocketers do immoral stuff for more money too, it is really the same thing.