It's fairly certain that if you download the official version of Minecraft from the website, you won't receive a virus. When you connect to a Minecraft server, it can only communicate with the client, not your computer. You can't have a virus, but being new to a Minecraft server might make you feel harassed.