I don’t doubt it.
I see it working well better to reinforce good will in allied, sphere of influence or neutral areas more than enemy.
A navy ship responding to a disaster does a lot of good propaganda work.
This ofc is also true of the less savoury sorts. The Yamaguchi-gumi delivered aid and supplies and performed SAR more efficiently than the Japanese government during the Great Hanshin Earthquake in ‘95 (and again in 2011 for the Tohoku earthquake ). This gave them a lot of good will from the affected citizens. I can see pirates (say from Drinax) doing aid work if it means a safe haven later.