The Hays code was in effect until 1965.
The Hays Code even extended to animated cartoon movies to such an extent that the ‘career’ of the famous cartoon character Betty Boop was ruined.
The Hays Code required that women, in love scenes, at all times have “at least one foot on the floor” (in other words, no love scenes in bed).
People could not be in a horizontal position if they were kissing.
http://www.american-historama.org/1929-1945-depression-ww2-era/hays-code.htm
Seems all of his rules were for naught......