Most medical professionals are able to write out a prescription for Viagra, a popular medication used to treat male impotence or erectile dysfunction. This includes a nurse practitioner, as they are authorized to prescribe medications such as Viagra. Therefore, you do not need to visit your own family doctor to obtain a prescription.