If a file was corrupted when you deleted it, restoring it won't fix it. The actual data is still there until something new comes along and overwrites it, at which point the old data is gone forever.