Starbursts candy do expire and are good for around 52 weeks from the date they were made.
However the Starbursts candy are still safe to consume even after expiration although they may not taste as good.
Hard candies do not go bad or spoil like other foods will and are safe to eat many years past the expiration date.
While the quality of the candy will change and not be as good it won't make you sick to eat old and expired hard candies.
I've eaten hard candy and other candy that was 10 years old that my Grandma had left in her house when she died.
There was no need to throw it out as it was completely safe to consume.
I've also eaten starbursts candy that was 5 years old and it was okay and I didn't get sick.
Starbursts candy are best eaten within 52 weeks once you buy them but they are still safe more many years past that.
The same is true with other candies.