If $f$ is a continuous function from an interval $I \subseteq \Bbb R$ into itself without fixed point then
- either $f(x) < x$ for all $x \in I$
- or $f(x) > x$ for all $x \in I$.
In both cases, $f \circ f$ has no fixed point.
Without continuity the assertion is false:
$$
f(x) = \begin{cases}
1 & \text{ if $x = 0$}\\
-x & \text{ if $x \ne 0$}\\
\end{cases}
$$
has no fixed point, but
$$
f(f(x)) = \begin{cases}
-1 & \text{ if $x = 0$}\\
x & \text{ if $x \ne 0$}\\
\end{cases}
$$
has infinitely many.
If the domain is not an interval then the assertion is also false, an example is
$$
f: D \to D, x \mapsto -x \, .
$$
with $D = (-1, 0) \cup (0, 1)$.