I have seen a meme over and over where it's bad to spam applications and you're supposed to talk to someone at a company before sending your resume.

Am I supposed to stalk up the manager of the department I think is hiring on linkedin and DM him? Feels wrong.