Yes. The premise is incorrect. Hamlet delivers a soliloquy in Act V, Scene 2 (often called "Hamlet's final soliloquy"). It begins:
"I do not know / Why yet I live to say 'This thing's to do,' / Sith I have cause and will and strength and means / To do't."
He reflects on his inaction, the readiness for death, and the providence in the fall of a sparrow. It's a pivotal moment of acceptance before the final duel.