Probably fine, if it's been kept covered up. UV light can degrade ABS, but water typically not a problem. It doesn't absorb water much if at all.
It depends what you mean by "unopened", it might be a little dusty. You can get dust wipes as printable parts.
PLA and other filaments do absorb water.