It will better be able to make a decision than a human can. But what decision is optimal isn't well defined because never before have we had the need to define it. So far, only directly malicious behavior is known to be bad. But prioritizing your safety over the girls safety is something we have neither decided to be good or bad.