As surrogate mothers have proved, knowing that you've given no genes to an infant needn't stop the bonding process.
Surrogate mothers haven't proven that there is a bond between an infant and a surrogate mother.