they should be fine but its not good practice is it
this doesnt surprise me at all though, I bought wormer from my vets a few months ago for my kitten, when I got home I noticed that there was a picture of a dog on the tablet so didnt give it to her and contacted the vets it turned out that it was dog wormer and could have seriously hurt my cat I was fuming and its not the only time they did it, they gave my mother cat wormer for her dog only 2 weeks ago, it doesn't look like they have learnt their lesson
it winds me up they could cause serious harm to someone's pet one day (just to add it was the reseptionist and no the vet who fetched the wormer for me, the verts are very good

)