So, yes, it is possible that by you using medications, you actually caused far more harm than good.
Read about hygiene hypothesis.
Once upon a time, it was believed that any single bacteria inside or outside our body is our enemy.
Today, we know better, we know that many bacteria helps our immunity, and our health.
Stil, today, most people believe that most worms are bad for us, and we should kill them all.
In a few years, it will become far more accepted that some worms are actually good for us, just like some bacteria are.
In other words, killing all worms inside your body may cause far more harm than good.