it depends on your pc. as long as you have anti virus and your pc is clean it is safe.
There are viruses that can't be detected by simple anti virus. They are good in hiding so even you purchase one of it that's not enough to make your PC secure.
If you will store a lot of bitcoin on your desktop wallet, its better if that desktop or laptop doesn't have access to internet.
also don't visit some sites that cannot be trust from your bitcoin.
Someone who's visiting a website can't say that it can't be trusted by "bitcoin" but it's your software installed/anti virus that's detecting if those websites can't be trusted.
Also if you need more secure your bitcoin you download more safe wallet that has 2FA and security key and don't tell anyone your password.
Just buy hardware wallet.