You have to take the OS-appropriate software security measures in that scenario.

If you are running Linux as the primary OS and are using the Internet, you are still open to security-based holes that Unix systems have.