Shouldn’t hurt anything! Run some carbon if you want but I’ve had plenty of pumps over the years leak rust into my tank! Never caused any harm or algae like people say, lol.
Any electrical device (meaning it has copper wires inside) not intended to be in water that was in the water is a substantial concern, even if it looked perfect on the outside.
if you run an icp and it shows high levels of tin, throw in a bag of cuprisorb. carbon wont pull out tin. but if that wasnt in the aquarium, i bet very little flakes fell in, but who knows without icp.