There are all sorts of examples where the Production Code ruined endings of movies or watered them down. A Streetcar Named Desire for instance. The ending of Hitchcock's 'Suspicion' makes no sense because the Code insisted that a husband cannot be shown to be cheating on his wife.
Well, you are entitled to your opinion. I prefer the good old days -- 1950s and early 1960s -- when it comes to terms of public decency.
I have never seen (or even heard of) the Hitchcock movie that you rerfer to. In "Streetcar", I did not have to witness the rape scene in order to understand that it occurred. I fail to see how the story line would have been enhanced by a graphic depiction.
BTW, some guy named William Shakespeare wrote some plays with rather violent content, but his writing was such that one did not have to actually witness the violence in order to understand it or imagine it.