Yup. If oil (gear, ATF, engine) meets the spec of the vehicle it is going in, then (so long as in a closed container) I would use it, regardless of age.
I find it funny that gear oil is one of the most neglected items on vehicles and they last for decades and 200,000+ miles, and we worry about using new 5 year old fluid from a sealed container.