No. Let $X = \\{0,1,2,3,\dots\\}$ and $A = \\{1,2,3,\dots\\}$, both with the discrete topology, and let $i: A \to X$ be the inclusion. Then $i$ has a retraction $r: X \to A, n\mapsto\max\\{n,1\\}$, and is even a cofibration. $X$ and $A$ are clearly isomorphic. The inclusion, however, is not a homotopy equivalence.