Yes, it is absolutely legal to buy weed grinders. However, the fact that the only use they have is for grinding weed, you might be suspected of smoking weed if a law enforcement authority sees you with it in an area where weed is illegal. Basically, buying a grinder or possessing it is not illegal but smoking or possessing weed might be illegal in some areas so you better watch out for that.