to an article in the Sunday Independent yesterday, 26 July, detailing an email sent to the Pat Kenny show which was read out on air.
Here's a small excerpt:
"The 100ml bottle ... cost €47.83 in an Irish pharmacy. ...
Last week, we were in Spain on a family holiday when we discovered that we had forgotten my daughter's medication, but I still had the prescription in my bag.
I went to the local pharmacy in the small resort town where the helpful Spanish pharmacist said they could fill the prescription. Though the manufacturer would be different, the medicine, trimethoprim, would be exactly the same. And the cost: €1.67 for a 100ml bottle."
So OP, I would say the answer to your question is yes, and it could be healthy for your bank account as well!