Meriam Webster's second definition doesn't mention causing harm:
> a strong inclination to do, use, or indulge in something repeatedly
So, according to the way people typically use the word "addiction" and the literal dictionary definition of the word, it doesn't need to cause harm to be considered an addiction. I can readily admit that I'm addicted to coding. I feel a compulsion to code for ridiculous amounts of time, and that has caused a lot of good in my life. But, like with everything in life, there needs to be balance.