In the event of Gestational Surrogacy, the answer is no. At the beginning of the process, everyone signs a Declaration of Parentage which states that the Intended Parents are indeed the parents.

Lawyers take the birth registry from the hospital, file for the birth certificate, and make sure the IPs names are on the birth certificate from the start (varies from province to province). The lawyer will take care of these steps.