You could say the same thing about hallways in an office building with multiple tenants, but I don't think it's legally ambiguous whether propositioning your coworkers outside the restroom is more appropriate than doing it in the office.
Definitely - heck, you could argue any interaction between coworkers like that could impact the job.
Just that many other such interactions that occur on linkedin might not, so job rules really don't apply just because it's work related but more because you're dealing with a coworker.