Yeah, if it's not happy in its current spot, it will try to move itself by pumping its shells quickly and 'hopping' or 'scooting' to a new place. If it's on the rock, it can fall over, so you need to find a secure place for it.
What does the stuff the clam left look like? Clams secure...