I think this is true because of prime factorisations, i.e.
If $3$ a factor of the prime factorisation of $q^3$, then $3$ is a factor of the prime factorisation of $q$.
Therefore If $3$ divides $q^3$, then $3$ divides $q$.
Or for a general case, if $n$ divides $q^3$; then $n$ divides $q$. Is this correct?