No. Sonnet 18 begins: “Shall I compare thee to a summer's day? / Thou art more lovely and more temperate.”
It ends with the couplet:
So long as men can breathe or eyes can see,
So long lives this, and this gives life to thee.
The poem is a celebration of the beloved’s enduring beauty through verse, not a tragedy. The question may confuse the sonnet’s form (sometimes associated with tragic themes in Petrarchan tradition) with its actual content.