No, when a phone restarts the only thing that is deleted is the data on the RAM. The data on your ROM, cache, and storage are all safe. However, if a phone restarts while it is processing something the files in question could end up getting corrupted.