Can I play with myself using a Virtual Machine?

EDIT: **I won't use SAM. I don't even use SAM for games with closed servers, and I won't make any further comments about it.**

EDIT2: That's crazy that some of you think this is about the achievement, and not experimenting with a VM. "Why go through all the trouble?" My brother, that is the point lmao.

Okay, hear me out.

Let's suppose I need a friend for an achievement in an online pvp game, but I have none.

Also didn't find anyone to help me for months.

Would buying the game on another account, and using that account in a virtual machine to play with myself... be possible? I wonder if steam will dislike it for X or Y reasons, so I want to ask first before I risk getting banned...