No. "Sweets to the sweet" is not from Shakespeare. It is a common English phrase meaning "give something pleasant to someone deserving."
Shakespeare never wrote this exact phrase. The association likely stems from the floral scattering at Ophelia's funeral ("Sweets to the sweet: farewell" appears in some modern editions as a stage direction gloss, not Shakespeare's text). The phrase exists independently in English proverbial tradition.