As a web media yes, pretty much on is last breath however it does have other uses and media types.
I use it for designing and developing applications that require real time image manipulation which cant be done in a browser (contrast, brightness, zoom etc) but I dont use it for whole websites now.
Animated adverts, in site apps (think cars, design etc) are still going.
Should you learn it as a future investment? Probably not.