Coffee's supposed to be good for you in certain amounts, yes. If coffee helps you do your job better or focus, and you make money, then yep that's good for your health because look! Now you can afford healthy food.
It's kind of like salad. Yes, salad is healthy. But ranch dressing, croutons...