You thought correctly.
Communistic even. See post 16. See post 20 on Situation Ethics.
“Lifeboat scenario” that was the one!