Juliet does not take poison. Friar Laurence gives her a sleeping draught (Act 4, Scene 1) that mimics death for "two and forty hours"—cold, stiff, no pulse, no breath.
The letter never reaches Romeo (Friar John is quarantined). Romeo hears only of Juliet's "death," buys real poison, and kills himself at her side. Juliet wakes, finds him dead, and stabs herself.
Poison kills. Sleeping potion simulates death temporarily. The tragedy hinges on this misunderstanding—and the failure of communication.