To know for sure, you'd need to:
* Check the part numbers: Compare the part numbers on both key fobs. If they match, there's a much higher chance of compatibility.
* Consult a Chevy dealer or locksmith: They have access to the databases that can confirm compatibility based on the VINs of both vehicles.
Don't assume they're interchangeable just because they're both Chevys from around the same year. A locksmith would be able to program the key fob if it's compatible; otherwise, you'll need a new one programmed for your 2002 Chevy.