No, cycling sunglasses are not necessary.
I've been cycling seriously for 25 years and have covered a lot of distance and have rarely worn sunglasses of any sort.
Sometimes I think they might be nice, but my prescription means that if I got some, they would be hugely expensive. So I don't bother.