In this answer I assume that the $k=0$ isn't allowed.
As given in the comments above, say that $k = \lvert G\rvert$. Then for any $g\in G$, $g^k = e$ (identity in $G$). In particular $(ab)^k = e$ for all $a,b\in G$. In this case
$$
(ab)^k = e = a^kb^k
$$
and
$$
(ab)^{k+1} = (ab)^kab = eab = ab \\
a^{k+1}b^{k+1} = a^kab^kb = eaeb= ab
$$
So in fact, for all finite groups (even the non Abelian ones) $G$ there is indeed a $k$ such that
$$
(ab)^k = a^k b^k$$
and
$$
(ab)^{k+1} = a^{k+1} b^{k+1}
$$
Just for fun, think about the case where there is a $k\neq 0$ not a multiple of $\lvert G\rvert$ such that \dots