Well it all depends on the way you look at it. Would you pay for a surgery if it would make your kid or brother or anyone you know live a little longer?
If they are suffering, I definitely would not. Maybe it is just me, but keeping a pet alive for your own benefit is, as I said, being greedy. The surgery is just going to let them suffer for a little longer.