Yes, Shakespeare's Sonnet 116 contains alliteration—the repetition of the same initial sound in closely connected words.
An often-cited example is line 12: "Love's not Time's fool." The "l" sound appears in "Love's" and the "t" sound in "Time's" and "fool" creates consonance. A clearer instance is "Which alters when it alteration finds" (repetition of "alter") or "O no! it is an ever-fixed mark" (repetition of "ever-fixed"). Regardless, Sonnet 116 employs alliteration among its many sonic devices.