Using aluminium electrolytic capacitors in RC filter
For a low-pass filter for PWM where the voltage is always the same polarity yes, you can use multiple electrolytics:







simulate this circuit &ndash; Schematic created using CircuitLab

You might also consider a "Pi" RC circuit:







simulate this circuit

For lower losses it is better to replace the resistor with a suitable inductor to make an LC circuit.