Yes, unless you're entitled to free prescriptions from the NHS. If that's the case, you'll need to show your exemption documentation on arrival at the pharmacy.
The cost of an NHS prescription (regardless of the type of medication) will be the same at any pharmacy. You can find out more about NHS prescriptions costs on the UK government website.
Keep in mind that prices for private prescriptions (sometimes issued for branded medication) may vary