Yes, doctors in the US can make good money, but imo, many deserve it - its is hard to become a doctor, and it should be - 4 years of undergrad, 4 years of medical school and then 2-3 years as a lowly paid resident making a pittance (compared to a doctor) - so that is 6-7 years of opportunity cost lost over someone that only had 4 years of school - i.e. years when you could have been working and making salary doing something else.
Compare that to a programmer, assume 4 years of undergrad, and then you get out making $100K easily - especially if you were a very smart student, probably much more (i.e. someone that was smart enough to be a doctor or a programmer), not even accounting for raises and inflation, 6-7 years at $100K and also assume 400K for med school loans and the programmer is already almost $1Million ahead of the doctor at year 7.
Over the long haul the doctor will likely do better, but it will take years to catch up once you factor in the huge costs a doctor has vs a programmer - I for one am glad only really smart people can become MDs.