Sure. Most artists I know live doing advertising, film art, game art. Sometimes the film / movie sucks, is actually a bad thing, or the advertising is intrusive or for a terrible product. They keep doing it.
You might know some brilliant programmers yourself who do great work while funded by an ad giant like Meta or Google. Sometimes less nice people, like the Saudi Arabian Sovereign fund, funds companies like Uber.
I struggle to think of any evil system that isn’t warped into doing some good by someone in it. That’s the complexity of it all.