I've been running internet-connected Windows desktop for 20 years, and have never gotten a virus. Surf smart, lock your door, and don't click on the damn
When you say lock your door, I'm presuming you mean behind a firewall or router?
The only time I've been infected was during a Win98 install. I ended up connecting it directly to the internet instead of using my router (I don't recall why; that was a long time ago.) After my first set of updates had applied (ie: rebooted from), I discovered that it was already infected. The most interesting part was it was compromised in under 25 minutes.
Since then, a router has been my best and first line of defense. After that, the rest of stuff is avoiding most of the social engineering that's trying to get you to click them.