Viagra is a doctor-approved medicine primarily employed for treating erectile dysfunction in men . Still, it can occasionally be prescribed off-label for ailments such as pulmonary hypertension and premature delivery . Crucially , taking viagra carries potential side effects , including headache