Accidentally deleted sites/all/modules in Drupal 7
Assuming the backup files you have are the same as the ones that were deleted, that should be fine. 

You'll probably want to flush the cache but other than that there shouldn't be any problems in theory.