switching power supply EMI Filter

Hello to all
I have a circuit for 220v AC to 5v DC 2A like below pic.
If I ignore the EMI Filter , does it work?
I mean if I change EMI Filter with a capacitor, Do I have 5v 2A in output?
tnx

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..

I have a circuit for 220v AC to 5v DC 2A like below pic.
If I ignore the EMI Filter , does it work?

I stay away from posts that contain " 220v AC" and "ignore" in the same paragraph.