Yes, if that’s the case, you would have to disable System Restore before deleting that file.
System Restore could be disabled via System Properties.