First of all every job has both pros and cons. When it comes to medicine, you can't just simply put it into "All doctors earn alot" . No, not all doctors earn the most . Especially in India, plain MBBS/BDS that too not from a reputed institution will not fetch you much bucks.
Yes, specialist who have completed post graduation or have done super specialization do earn a lot generally!
Hope this helps !!