Yes you can. Here is how it shakes out for SRAM and Quarq power meters.
SRAM RED AXS Power Meter Crankset
The SRAM RED AXS Power Meter Crankset is made specifically for SRAM AXS 12-speed road drivetrains.
SRAM RED/Force AXS 107 BCD Power Meter Spider
The SRAM RED/Force AXS 107 BCD Power Meter Spider is also a SRAM power meter for 12-speed drivetrains and features a 107 BCD for gravel and CX chainring sizes.
All other SRAM and Quarq power meters including the DZero and DFour are made for 2×11 drivetrains. Please note you could run these on a 1×12 drivetrain, but they would not work on a 2×12 drivetrain.