ESP32 pins difference between VIN and 3V3 pin

You can do that on many of the boards but I do not know your board so you will have to look at its specifications or a valid schematic.