Sure but medicine is a profession and doctors usually don't suffer when they lose a patient to a "competitor", so they shouldn't typically feel pressured to give a patient whatever drug they want.
I've heard that and brought that up to a doctor friend of mine at the time, and they told me that they would rather give the prescription if it won't harm the person, because it's likely the patient will go to a questionable doctor / online pharmacy and the risk might be less just to comply.