Yes — but the prescription is the smaller half of what should happen.
Erectile dysfunction is frequently an early warning of cardiovascular disease. The arteries supplying the penis are narrower than the coronary arteries, so they show narrowing first — often several years before anything else appears. That makes ED an opportunity to find and treat risk early, not simply an inconvenience to be medicated.
What a proper consultation covers: blood pressure, cholesterol, HbA1c and testosterone; a review of your medicines, since several common ones cause ED; and the psychological and relationship context, which matters as much as the vascular side.
Anyone who sells you tablets without asking why has sold you a product rather than seen you as a patient.
One absolute safety point: these medicines must never be combined with nitrates — GTN spray, isosorbide, or poppers. That combination can cause a catastrophic drop in blood pressure and has been fatal.
A lower-dose sildenafil is available directly from pharmacies without a prescription, and for a straightforward case that is often quicker and cheaper. Never buy from an unregulated website — counterfeit ED tablets are among the most commonly seized fake medicines in the UK.