The CCCP did beat NASA to the moon with Luna-9*, a robotic craft than soft-landed on 3 February 1966.
Curiously, that did not seem to get as much attention as Sputnik, but it sure got the attention of NASA. They retaliated by landing the first humans on the moon, beating the CCCP in that...