Yes. Distributing malicious software is a criminal offence in most jurisdictions, and hiding it inside a mod does not change that. Unauthorised access to someone's computer is the offence, regardless of what the file is disguised as.
On top of the legal side, it is a fast way to be banned from the game and the modding community. If you have downloaded a mod that turned out to carry something nasty, run a full antivirus scan and stick to the Steam Workshop or the mod's official page in future.