Power plug is to long

I will use an Raspi zero with the enviroplus hat. unfortunatly the micro-usb-plug for supporting the 5V ist to long for my housing.
If I use the GND and 5V pins on the enviroplus GPIO, would the raspi zero be also powered?

Yes. the Pi can be powered via the GPIO Pins. I’ve done it several times now.
And as far as I know those pads on the Enviro + go to the matching GPIO pins.