No, the compass needle will not show deflection even though the switch is closed, because there is no source of electric current (Battery or cell). An electric cell or battery needs to be connected here. In the absence of electric current, there is no magnetic field produced by the wires. Hence there is no deflection.