As surrogate mothers have proved, knowing that you've given no genes to an infant needn't stop the bonding process.
Surrogate mothers have proven that even if you and an infant don't share a single gene, they still feel bonded together.