In my opinion the answer to this question is YES but in the context of developing countries only. As in most of these countries it is not mandatory to have doctor's prescription to buy medicine.
I assume NO. Consumers here in country like India trust the doctor more than the medicine and many patients wont even know the name of the medicine. In countries where you have more conscious consumers, this way of promotion may work.