However, it has no connection to Morse code other than coincidence. Train whistles have been around for over a century (much like Morse code) and have been used to transmit information to the conductor in the caboose as well as to others that may need to hear it.