The official NVMe hat blocks access to the PoE header, but there are third party options that combine NVMe and PoE into one hat:
https://www.youtube.com/watch?v=x9ceI0_r_Kg
Alternatively you could get one of the NVMe boards that sits under the Pi, and put a standard PoE hat on top.