No. Do not defeat the door switch or operate with the door open. Protective controls are not optional diagnostic obstacles.
Understanding this situation
A dryer that only runs when a latch is held or pushed needs assessment. Temporary contact does not prove the closure is sound, and it exposes moving and heated parts differently from normal use.
A useful next step
Leave it unused and describe the exact behaviour. Check only for an obvious obstruction with the machine stopped, as the manual permits. Do not tape, bridge or wedge a switch to complete an urgent load.
Manuals and supporting guidance
Model-specific instructions take priority. These references support the practical principles discussed here; they do not diagnose your appliance.