It is, if you don't stare at it for too long, no longer than a few minutes. The risk of damaging your eyes increases if you use magnifying devices such as binoculars or even mobile phone camera. Of course there is a possibility that you can stare at sunset for a while and your eyes will be fine, but I'd recommend not doing it just to be on the safe side.