Very true. I believe the well-known story was that Solomon offered to split the babe in two for fairness' sake, and when the real mother began to cry, Solomon knew who was telling the truth.
In fact, I was recounted the true story of this incident by a traveling peddler. Solomon was very kind to both women and listened to their concerns, leaving them with the promise of the assignment of a high imperial clerk to their case. The clerk quickly determined in no time at all through the well-organized imperial intelligence service that one of the prostitutes had a liason with a minor but decorated officer of the third legion some time ago. Questioning the officer uncovered very quickly the true identity of the baby's mother, who were notified and brought to one of the world courts at haste. It had scarcely been a day.
Since lying in the court is a serious offense, the false mother was sentenced and executed later that day. Since copulating with an acting officer is a serious offense, the true mother was sentenced to six months of hard labor, her child was taken as a ward of the state, and her lover, the officer in question, was discharged from the imperial military, had his citizenship revoked, and died of complications from syphilis a year later, or so I hear.
The true mother is doing better, I've heard she is a clerk now, and her education was paid for by the crown.
She will still never get her child back.