Can I power a Pi Zero W and still use the usb hub at the sametime with this?
I can't answer your question directly, as I don't have that particular OTG cable. However, I do have a usb hub connected to my Pi Zero W USB data port, and the power from the hub is powering the Zero W as well as a few peripherals including a keyboard and a mouse with LED's onboard. No sweat.
You should be good to go.
The Pi Zero W has two micro USB ports:
- Micro USB On-The-Go, labeled "USB" - this is where the hub is connected
- Micro USB power, labeled "PWR" - this is where the power supply for the Pi is connected
In other words: yes, you can do both things at the same time. This is exactly what both ports are for.
From the schematics of the Pi Zero, and assuming that the Pi Zero W is similar in this respect, we find that the USB On-The-Go port's power line is connected to VBUS whereas the power port is connected to 5V. Unfortunately the schematics do not mention VBUS again at any other point.
However connecting the power supply to the data port does indeed power the Pi. This answer supports that the Zero (again assuming the Zero W behaves the same way, which is likely) can be backpowered.
The final question now is whether the shown OTG hub powers the power line on its upstream port - which I cannot tell from the picture. If it is self powered (not bus powered) it is quite likely that it will work (with any drawbacks that may arise from backpowering). Make sure that the power supply's amperage covers the Pi and the connected peripherals.