They are important but as far as hacking goes, windows is the top targeted OS. Its mainly common sense when using any device that connects to the internet. Don't go on any sites you don't trust and don't download anything that looks suspicious.
I used windows for years and never had one virus...