Pregnancy test expiration?

So dumb question and not sure where to post this but do pregnancy test have an expiration date? And do you think a digital from 1 year ago would still work ok?