Is it necessary to replace a year-old battery when the alternator is replaced on a 1997 Pontiac Sunfire?

No way, only if the battery fails under a load test