Constant Current LED Driver with Raspberry Pi Zero W
Aside from various possible disaster scenarios, the Raspberry Pi power consumption varies widely perhaps from 0.4 to 1.5W. That would cause the light output from your IR LEDs to vary considerably, so I don't think it's a good idea.

I suggest running both converters from the 12V input rather than chaining them, for better efficiency.