Well no good deed goes unpunished. That being said. I wouldn't stop being "good" for the world. And I personally don't even believe morality exists. Not in the sense that most do. It's an artificial and vague concept that is dependent on any particular culture. For example, some believe that having sex outside of marriage is bad. But marriage itself is also artificial proving the point that morality is a human concept. Regardless I still feel like it's important for a stable society/culture. But morality still isn't black and white. Say someone steals. Stealing is considered immoral in almost every single culture. But does a particular culture take into account *WHY* they stole? Was it pure greed? Was their family starving and they stole bread to feed them? Does it matter either way?
I have my own set of moral codes. Which I follow. Essentially anything is permissible unless it (unconsenually) harms another directly, or indirectly as a result of recklessness. It only applies to sentient creatures and goes into far more complicated details but that's the short of it. "Do unto others as they want done unto themselves" and "Don't be a dick" are good summaries. I decided on these because of attempting to form a moral doctrine that was fair and equitable. Still, my moral doctrine is permissive to the use of illicit substances (Such as drugs). And society at large tends to disagree with that. Morality is a huge perma grey area. Even the simple ones such as "Do no harm" and "Do not kill" aren't black and white. Because throughout history harming and even killing has found justification.
Still I stick to my doctrine, and try to avoid people who violate it if I can. I participate in society and it's laws even if I disagree with some of them.
If you're looking for a simple "yes/no" answers you're not going to get one from me. Because it also depends on how you personally define worth. Especially considering Worth/Risk. As in being a hitman can make lucrative currency incomes. But it's also risky. It's a risk if you're ever caught by law enforcement, or even a target of revenge. Each person weighs in their skills, their opinions, and their idea of worth versus risk and makes a decision in life, well a multitude of them. Even from a moral nihilist point of view there are negative consequences for doing things society considers "bad". and thus positive consequences for doing things society consider "good" so even if you believe that morality is not innately relevant beyond the scape of reward versus risk. It's still an important factor.
However many people believe in morality deeply. Some believe their state in an eternal afterlife depends on their actions in this life. So out of self preservation and interest they aim to do "good". But again this comes from worth versus risk. " Is true altruism a thing? and if it is, It's not logical or beneficial. Because if you're only a "good" person to get into some eternal heaven after death, are you really a good person? And if you steal to feed your starving family are you really a bad person? What matters more? The action, or the intent? Or both equally? How is morality calculated? It's all subjective incredibly so.
Some people are "good" because it gives them positive feedback in one way or another. Perhaps a "warm fuzzy" sensation for doing something that benefits someone else. Or perhaps their super ego rewards them. Some do "good" to others because they believe it increases the chance of others doing good unto them. Make the world a better place so to speak. It's really impossible to say for any certainty.
I can't tell you if it is or not. This would be something for you to decide for yourself.
- - - Updated - - -
In fact. For some these might even be mutually exclusive. A prime example of this is Dr Martin Luther King, Jr. Who was considered a criminal in his time. But he did what he felt was right. In modern times we consider him a hero of the civil rights movements and helped pushed our society into a brighter, and kinder, more accepting age.
A quote I quite enjoy from MLK is thus "Just as we have a moral obligation to obey just laws, we have an equal obligation to disobey unjust laws"