LPF (LC) filter before LDO for DAC
A pi filter could mean anything but if you mean one that is an inductor with a capacitor to ground either side then my answer is exactly the same because, the input capacitor i.e. the one receiving power from &quot;upstream&quot; is, in effect, in parallel with the upstream bulk capacitor in the &quot;switched power supply&quot;.
So, an LC can do a lot of good in reducing ripple fed to the input of any linear (or switching) regulator but it can do serious harm if not properly designed. For instance if the load (down stream of the LDO regulator) took pulses of current, the back emf due to that current changing in the inductor can be enough to &quot;double&quot; the input voltage to the regulator it feeds. It won't stay double for long because it's a transient event but, this transient event is enough to kill silicon if not sufficiently voltage rated at it's input.
This is hard to prevent so my advice is make sure that your regulator (fed from the LC) can handle (as an input voltage) at least twice the normal running voltage. The C in the LC will alleviate this situation considerably but I've fallen foul of this recently so I am speaking from experience!
You could choose to put a zener diode at the input to the regulator to catch large excursions - this is an accepted way of dealing with things but the zener needs to be rated a volt or so higher than the worst case supply voltage under extreme quiescent conditions.
Assuming you have got this all sorted out you still have to be aware that an LC filter has the potential to exacerbate ripple at the &quot;wrong&quot; frequency and this could make the regulator output even noisier. What I tend to do (under these circumstances) is design the LC so that it isn't under-damped: -

If \$\zeta\$ is small, any input ripple frequencies occurring at the point of resonance will produce output ripple that could be several dBs higher i.e. putting the LC in actually makes things worse. So, if you can drive a simulator, engineer a solution with a small value resistor in series with the inductor - it can't be a big value because it will heat up and degrade the level of DC voltage feeding the regulator.
Other than the above it is worthwhile especially as the load is a class D amp because class D amps are notoriously bad for power supply rejection.