It's got nothing to do with the OS on your computer.
Set a strong WiFi password in your router's configuration utility, that's how you control access to it.
Make sure it's a strong password (ie a mix of letters & numbers) with WPA or WPA2 encryption, that's essential.
Do not use WEP encryption as it's too weak and dead easy to crack.