I'd say that's a decent deal, you're getting around 40% off compared to if you were buying it new. If you can find an M2 Air with 16 GB of RAM for a similar price, that might be better, because it's newer. Also, what're you gonna be doing with it?
EDIT: Since the hardware itself is from 2020, you can realistically expect it to last about 3 years. I've had my M1 Air since it came out, and it's still working fine, but it's certainly not going to last forever.