switching power supply EMI Filter

Yes.
The filter stops hash from being thrown onto the mains,
but it also stops mains spikes from getting to the circuit.
One day the fridge will turn on, and your circuit goes up in smoke.

I sense beginners level in electronics.
If so, stay away from mains connected circuits.
You might kill someone else.
Leo..