(You can either connect a Microsoft account to your whole WindowsPC, or just the OneDrive app specifically.) To confirm that this protection is on, you can look at Ransomware protection ...
Results that may be inaccessible to you are currently showing.