Son of a gun is an exclamation or a noun in American and British English. Apollo 12 Astronaut Pete Conrad said, upon seeing the Surveyor 3 just prior to touching down on the Moon: "Hey, there it is! There it is! Son of a gun, right down the middle of the road!" It can be used encouragingly or to compliment, as in "You son of a gun, you did it!"