Yes, you can.
Only requires a rescue disc containing with macOS to boot the system and have Mac Data Recovery installed either on this separate media or on a healthy partition.
Mac Data Recovery software restores data, documents, emails and media files like Photo, Video, MP3 files, etc., from Mac storage devices your accidentally formatted or deleted.
Supports: iMac, MacBook Pro, MacBook Air, Mac Mini, and Mac Pro.
Compatible with: macOS High Sierra, Sierra, OS X El and others.