Not at all. Take $f(x)=x^2$ on the unit interval. For examples of uniquely ergodic homeomorphisms of the Cantor set see [The prevalence of uniquely ergodic systems][1] by Jewett.


  [1]: https://mathscinet.ams.org/mathscinet-getitem?mr=252604