Yes, a court can consider a child's preference, especially if they are of a certain age and maturity level.