For the (expected) downvoters, this is a legitimate question, because the easy thing is to quit after benefitting from something you eventually discover is "bad". Real moral principle comes from that extra step, usually of hardship, whereby you have the moral realisation and also penance that must be paid.
Otherwise we should all do bad things for money, and one day stop then say "whoops, guess it was as evil as I thought" while relaxing in our nice houses by the swimming pool that we bought with those proceeds.