Yes, it's generally fine to eat expired candy corn.
Candy, including candy corn, typically has expiration dates that serve more as guidelines for when to consume them, much like most other foods. According to the reference, both sugar-based confections like candy corn and chocolate are unlikely to negatively affect your health if eaten past their expiration date (28-Oct-2024).