Not in germany for multiple reasons
Surrogacy is illegal in the first place. The contract for surrogacy is thus void and unenforceable in Germany. Acting as a placement agent for either a couple or a possible surrogate mother is also illegal. But note that is not an extraterritorial law and it does not illegalize wanting parents to seek out a surrogate or retaining one outside of Germany under the law of the country the surrogate resides in.
Under German law, the mother is by the law's definition only the woman who gave birth, so always the surrogate never the wanting mother. As a result of how the German law sees blood relations, the child is not a blood relative of the wanting mother and thus can not give the child German citizenship, nor does she have any right to the child.
A wanting father can not gain parenthood from a contract about surrogacy, but under certain circumstances he can can paternity of the child, e.g. via "Vaterschaftsanerkennung" or a "Vaterschaftsfeststellungsklage" ("paternity recognition" / "paternity declaration lawsuit").
Only under very niche circumstances, a court decree from outside Germany vesting parenthood with the wanting parents is accepted by Germany: At least one of the wanting parents needs to be genetically related but the surrogate can't be. That court decision needs to follow the legal situation in the source country's law about surrogacy and adoption.
Only when the child manages to qualify for German papers and has been given (e.g. a legal adoption happened) the child may actually be brought into Germany at all. source