Can you murder a robot?

Does it matter if we hurt a robot? And should we have rules to make sure they don’t hurt us?