If a railroad car was moving and stroke another car at rest and the two cars then become attached by a special hitch. Does the first car have momentum? Why?

I don't have to be psychic to realize you probably mean physics.