Only if that is the contract that has been made. Different contracts are possible.
For example, we can all make a contract with society to perpetuate a better society, and in return receive help from society. Someone who breaks that contract has forfeited the right to support, but noone is charged with killing them.
Such a contract does not imply communism; it simply requires that we individually reward good character.