It depends on what specialty you are. I know a few pharmacists who are hesitant to fill, say, a prescription for ADD for a teenager written by a cardiologist. Outside of that though I would agree that most MD's and DO's have pretty much no restrictions when it comes to what they can prescribe. Dentist's on the other hand are pretty much limited to painkillers, antibiotics, and the occasional anti-anxiety meds as well as prescription toothpastes and the like. Optometrists/ophthalmologists usually stick to the eye drops, podiatrists, the muscle relaxants and pain killers,
dermatologists...well you get the idea

.