It should be false..
Since dfs can find the cycle in O(n+e) time.
But it will not find Hamiltonian cycle.
In the mathematical field of graph theory, a Hamiltonian path (or traceable path) is a path in an undirected or directed graph that visits each vertex exactly once. A Hamiltonian cycle (or Hamiltonian circuit) is a Hamiltonian path that is a cycle. Determining whether such paths and cycles exist in graphs is the Hamiltonian path problem, which is NP-complete.
Because of it not able to find Hamiltonian cycle depth should be less than v-1.
https://en.m.wikipedia.org/wiki/Hamiltonian_path