Can a computer love me as much as my dog does?

Just a thought. Some say dogs don’t actually love their human families. They only appear to as a mechanism to get more food. What if we build a computer that needs something, say electricity, and will do anything, even show pseudo emotions to get it?