Hundreds of threads already about 'recover images' from all sorts of funky accidents...
In short: Yes, as long as no new files have been written to the card and the formatting has only been on done in camera or PC using Quick Format option. Otherwise say farewell ...