If you previously committed the file to git, then yes, you certainly can.
git restore your_file_name
However, even if you didn't commit it to git, there's a decent chance you can recover it using Eclipse's "Local History". See: https://stackoverflow.com/questions/5451175/is-it-possible-to-get-the-deleted-file-from-eclipse-workspace
Hope that helps!
Thank you for the insight, this post helped me restore a file that I accidentally deleted.
I think you can restore it as long as you didn't click on the checkbox that says "Permanently delete from computer" when you deleted it.