That's a tricky one. Getting paid with help of unethical incomes is kind of outside of or on the fringe of the bubble of one's ethical awareness. (But then, whether one's a hypocrite or not depends not only on their own bubble but on what society in its own bubble knows or considers about the consequences of their actions.)
It's kind of like asking whether you can advocate being kind to animals and then turn around and eat meat. Most people, even animal lovers, eat meat and think nothing of the lifelong misery they're helping to inflict on animals because they don't have to see it. So, given that we're all but unaware of what we're doing and everybody does it, is it hypocrisy to advocate loving animals while being a meat eater?
Similarly, let's say someone's 401k invests in some shady companies, for example maybe one of them is responsible for murder.. is it then unethical for that someone to preach not murdering people? What if he never looked into what his 401k is investing in? What if he did and doesn't approve of the investment but has little choice, pragmatically speaking? And what of the fact that he's only doing what everybody else does? And what of the indirectness or trivialness with which that company is associated with him?
So I think whether they're hypocrites or not just depends on how strict a measure you want to hold them up to. If you go by society's ruling (and is a hypocrite anything other than what society deems a hypocrite?), I'd say the answer to your question is yes, you can do that (i.e. without being a hypocrite), at least depending on how direct and how substantial the ties are with the unethical incomes.
Retrospring uses Markdown for formatting
*italic text*
for italic text
**bold text**
for bold text
[link](https://example.com)
for link