"it moved all my emails to the deleted file"
Can't even imagine how it would do that, on its own... Must have been something else...
And yes, you can select your messages in Deleted and use "move to folder" or "restore" (up arrow icon) to move them back to the Inbox.