Yes, Dick has been a nickname for Richard for about 800 years but only got its modern slang meaning in probably late-19th or early 20th century. It seems to have come out of the British military from the phrase "Tom, Dick, and Harry", which were such common names that the phrase meant every ordinary man. (Tommy was already slang for "British soldier".) And from there, one more evolutionary step for mankind....