Yes. You do the thing for money and good, but instead of emphasizing the good you just say: "We're doing this mostly for money, but it also does some good and we like that too."
Nobody with any sense is going to ding you for that.
Or you can even say, "we're doing this good that these people want, and this is how these people have agreed to pay us for it". Which is also fine. It's honest.
Nobody with any sense is going to ding you for that.