Did I make a mistake?

I recently purified a lot of my shadows to get them to 100% ivs. The main reason is for most of them I don’t have enough candy to power them up to a usable cp. I know sandslah is good in great league but I already invested so much candy into a near perfect one when I got this I was okay with purifying them. Should I have not done this?