Can 1000’s of years of history be wrong?

"If a doctor gave you a medication that alleged to work for a condition that you have, yet after taking it for some time it showed to be absolutely useless for your condition, they would prescribe you something else โ€“ and that is what you expect from a doctor, it is their job, am I right?"