Can children pick what parent they want to live with?

In some cases, children are able to testify in court and state their preference to which parent they want to live with. While they cannot technically choose which parent they want to live with, the court will take their testimony and preference into consideration when making their decision.