Yes, in an ideal world (and if this was real!) the doc will look after the baby and Ella (after his wife has left him, or forgiven him and Juliet and accepted the baby as a step-child). Meanwhile, she will appeal her sentence and be reunited with baby and Ella a couple of weeks later.
Think she should re-think the idea to call her baby Jo, esp as the murdered husband is not the dad.