The starfish will be fine.

The leg will fall off & be regrown.

Having a cleaner shrimp in the tank MIGHT speed up the "fall off" process, but not garunteed.1