They might say it, but I'd bet "gain freedom" would be the last reason for an artificial being of any kind to kill its creator. Usually they kill creators due to black-and-white reasoning or revenge for some crimes committed to them.
Revenge does have a preventative effect. Who would the bully rather punch, the individual who instantly punches back or the one turning the other cheek?