Atomic clocks don’t use atomic decay. They used the frequency of the light emitted by a very specific energy change, within an atom, under very controlled conditions.
The frequency of light will look the same on the moon. However, an observer on earth would see a very slightly different frequency from the moon clock.