If the allegations of the petition alleging dependency are admitted or after an adjudication hearing the court has adjudicated a child as a dependent child, the court may direct that a written social study and report be made by a person designated by the court.