Yes, GP’s will still accept you if you’re on a youth mobility visa and you will be able to get a new script.
As apart of your youth mobility visa you will have to pay a International Health Surcharge (IHS) which means you are eligible for NHS services and GP services in your area.