Yes, air fresheners can go bad. Most have a shelf life of 1-3 years unopened. Once in use their effectiveness will last for the duration stated on the packaging (e.g. 30-60 days for many types). After that the fragrance will be less potent or change in quality.