ESP32wroom pull down 12V P-channel mosfet gate
No because the pullup will subject the ESP32 output to 12V.  This will cause the upper ESD protection diodes to conduct the 12V to the VCC rail and probably completely destroy the device.

The standard method is to use a bipolar or n channel mosfet to drive the gate.







simulate this circuit &ndash; Schematic created using CircuitLab

M2 needs to be a logic level gate NFET and M1 needs to support a Vgs of 12V (which shouldn't be an issue).