Not just that.
The investigation of the murders leads Kirk &co to actually think Scotty could be the murderer because “a woman caused the explosion that nearly killed him”. Aside from the misogyny, that says they really don’t think much of Scotty, that they actually believe he could willingly murder women because he got a bimp on the head. As I said once before:
And the fact that Kirk takes Scotty to Argelius to get him laid.
SCOTT: You mean to tell me all these women, that all this is
KIRK: Yes, yes, yes. The Argelians think very highly of their pleasure.
Yes, Argelius is a whorehouse planet. Of course, that fits in with the Jack the Ripper theme.
And really, when you get to the end of the investigation, Scotty actually DID the murders. The show glosses over that. Yes yes, alien possession you say. I wonder if the Argeliuns believed that.