It depends on many factors. Malware for Linux does exist but the chances to get it are much lower than on other Platforms. This however, does not make it impossible. The classical threat to Unix-like systems is vulnerabilities in network daemons, such as SSH and web servers. See https://en.wikipedia.org/wiki/Linux_malware for details.