No, downloading Garry’s Mod from Steam does not give you a virus. Steam is a legitimate distribution platform, and purchasing the game there is safe. It is best to avoid unofficial sites, since they may bundle harmful software. For safety, use Steam or the official Garry’s Mod site.