Using esp8266 as isp to burn bootloader on atmega328p

I am trying to program arduino wirelessly using esp8266 but in that process bootloader in arduino is deleted . Is there any way to burn bootloader on to ATmega328p using esp8266. I know we can burn bootloader using another arduino but is there any possibilty of burning bootloader with esp8266.
Thank you.

upload sketch with bootloader hex created by Arduino IDE next to normal hex