Is the converse true?
No.
The paper Constructions of Rigid Spaces, IConstructions and Applications of Rigid Spaces, I, Advances in Mathematics 29 (1978), 89-130, by Kannan and Rajagopalan, describes a countaby infinite Hausdorff space $X$ such that the only continuous maps $f\colon X\to X$ are the constant maps and the identity map. Such a space satisfies $|\text{End}_{\text{Top}}(X)| = \omega = \ |X|.$
If $A\subseteq X$ is a subset such that $|X|^{|A|}=|X|=\omega$, then $A$ is forced to be finite, and therefore $A$ cannot be dense.