It may have the same ethical concerns, like finding a surrogate mother for your child.
Usually there is a strict procedure and a lot of papers to sign, so the biological mother and the parents can choose the relationship between all of them and the child, just like when you are adopting a child that is already born.