No harm in using it on the piston.

And you have done it right. Whilst lots may seem to have come out on the cloth, you will have worked some moly into the steel.

I would always also use a TINY smear of moly grease around the circumference of the piston seal (none on the front face) and some on the tail of the piston.