Doing unethical things because someone pays you would still be unethical. Opposing those while someone pays you is still ethical.