You can but if the drive has been completely wiped, then the installer may still hiccup because there is no Snow Leopard or Lion system already installed. On the other hand if your drive still has the Recovery HD partition installed, then you could try a straight recovery:
Reinstall El Capitan or Later
- Restart the computer. Immediately, at or before the chime, hold down the Command and R keys until the Apple logo and progress bar appear. Wait until the Utility Menu appears.
- Select Disk Utility and click on the Continue button.
- Select the indented (usually, Macintosh HD) volume entry from the side list.
- Click on the First Aid button in Disk Utility's toolbar. Wait until the Done button activates, then click on it.
- Quit Disk Utility and return to the Utility Menu.
- Select Install OS X and click on the Continue button.
This will install the last version of macOS installed on the computer.