Yes, it is totally safe to clear cache in Windows. Also, it'll junk files and clear storage space on your device and it's an effective way to maintain your device properly. After cleaning junk files, restart your device, and it'll work normally.