Question: Is it possible to connect an esp8266 with the serial pins to another

Question: Is it possible to connect an esp8266 with the serial pins to another esp8266 to program it over wifi?

I program from within the arduino IDE.

you dont need another ESP, search for esp8266 update library

It’s redundant, use OTA instead

Tip: Keep track of the reboot reason code at startup, so if new firmware fails for some reason and the esp faults, it can drop into a simple OTA loop instead of failing in some unknown or constant reboot state.

I wanted to use OTA but that isn’t possible. My sketch is too big. For OTA you need twice the space of your sketch.

That is why i thought about using a wireless programmer.