You should always give your patient the option to go to another doctor for the prescription. 

However, getting the prescription whilst in-clinic makes it easier for you to make sure that your patient gets the vaccinations and you can add that information to their patient record.