The pre-Code era of Hollywood filmmaking ran from 1930 to 1934. During these years, Hollywood films contained increasing levels of violence, sexuality, drug use, and morally ambiguous protagonists. Although officially created in 1930, the Production Code did not begin strict enforcement until the middle of 1934.
Source:https://www.cbr.com/outrageous-1930s-movies/