Yes, the court can extend custody if it is in the best interest of the children. For boys, custody can be extended until maturity, and for girls, until they marry.