Probably, but would use more info to decide. Depends in part on family spending rate, therefore years to FI. Are you working longer because you need money to pay for kid stuff, or because something about parenting makes you want to spend part of the day at work?
Also depends on pension plan of the state. I'd research questions such as:
1. How many years to qualify for pension?
2. At what age would pension begin payments?
3. Is the pension inflation adjusted, or are payments fixed?
4. How are pension payments calculated (in other words, how can I reasonably estimate the payment amount)?
5. What is the fiscal health of the state pension?
6. Is there an option to "buy time"? If so, what are the requirements and what does it cost?
7. What % of gross pay is diverted into contributions to the pension?
8. If you leave the pension system, how is the amount of your lump sum payout calculated? (In other words, if you don't get the pension, how much money do you get back)?
Former state employee here. The culture questions others have raised by others are relevant too. Have you worked in govt before? If not, I would research culture issues through as many online and in person avenues as possible. This could double as interview prep.