My opinion: no and yes.
Don't replace it with a non-sunroof panel as it will devalue the car.
If you replace the panel with a very good condition item then it should last a good time before any new signs of corrosion appear and by then you will prob have moved on to something else.