Yes. Someone who has graduated from medical school and has been awarded a Doctor of Medicine (MD) degree is a doctor in the academic sense—they have earned a doctoral degree in medicine and may use the title "Dr."
However, there are a few distinctions:
MD graduate: They have completed medical school and earned the MD degree, so they are a physician by education.
Licensed physician: To independently practice medicine, they must also complete the required postgraduate training (such as a residency, depending on the country) and obtain a medical license.
Resident physician: After medical school, many MD graduates enter residency. They are still doctors and provide patient care under varying levels of supervision while completing specialty training.
So, in common usage, someone who has graduated from medical school with an MD is a doctor. Whether they can practice independently depends on whether they have met their jurisdiction's licensing and training requirements
p.s. Stop being jealous because this "socialist" is smarter than you!