You need to setup and then run apple's TimeMachine backup or use another backup application to have your data backed up. OSX doesn't do it for you.
Like any other computer, operating system. You delete something, its gone.
the only saving grace you may have is whether the deleted files are still in the trash, i.e., did you empty the trash?