Hi Jim
I guess adding the root share folder (C:\Shares) to the Windows Defender Antivirus's Controlled Folder Access is good practice to protect your files from ransomware. this helps feature in Windows Defender helps prevent unauthorized changes to files . so yes it is indeed a good practice and your approach is correct I would say.
but also keep in mind that the access permissions to the shared folder are properly configured. Users who need to modify files in that folder should have the necessary permissions.
If this helps kindly accept the answer thanks much.