ASM Door Switch

The ASM door switch is broken,came apart when the door felll which I think was connected to maybe one of the wire on the Harnes pwb. Will the dryer run with out that switch and will I also have to replace the harnes pwb as well