Not necessarily..
http://kenyalaw.org/caselaw/cases/view/198517/
http://kenyalaw.org/caselaw/cases/view/108990
There are cases where men who took on parental responsibility and later discovered that they were not the biological fathers...
http://kenyalaw.org/caselaw/cases/view/122326