That's better, but still not great. It depends how old you are and how long you plan on working. Remember that you're losing income AND paying for medical school during those 6 years.
It'll take 6 years of work as a family doctor just to catch up to the amount of income you would have made as a pharmacist (assuming 120k as a pharmacist and 220k as a family physician, and 50k for the residency income and after taxes).
Then the medical school tuition itself is I'm guessing around 100k-200k. So probably another year or two of work to cover that. Then, medical school is obviously much, much harder. Then there's the problem of obtaining both a residency and a job after.
You'll basically be playing catch-up for 8 years. So if you're on the younger side (~30), sure, it's still doable. But if you're closer to 40, I'd have to start wondering what the point is.