Yes, but note that as usual this formula is for asymptotic only, as $N$ go to infinity.
$N^{O(1)}$ technically mean it's bounded above by a function of the form $N^{f(N)}$ such that $f(N)$ is eventually bounded above by a constant multiple of $1$. Parsing all that, it does mean it's eventually bounded by $N^{m}$ for some constant $m$.