Obviously. You're not a "sell-out" if you are honest up front about your work being commercial.

I find both doing it for money, and doing it for personal or benevolent reasons to be good. What I find despicable is claiming you're doing something for selfless reasons, but actually doing it for profit. That's what dishonest and shows ill will towards other human beings.

(Doesn't have to be strictly about money either. The amount of voices you could hear saying they won't be writing blog articles or OSS because it'll become training data for LLMs, and that this thus deprives the world of their pro bono work, clearly shows there's plenty of such dishonest attitudes in OSS circles too.)