No since weapons can be used defensively and most of the time that's the way they are used. This is even true for nuclear weapons.
I unironically think that creating video games(digital drugs) that get people waste their time and become addicts is the most unethical way to use your programming skills. I see very upside in video games, maybe if I was dying in to cancer with two days to live it would be better for me to spend that time in trance playing a game, all drugged up. But for normal healthy people video games are just an obstacle that prevents them achieving better future for themselves and people around them, in aggregate they create massive amount of misery just like narcotics do.