Running Nimh batteries in lipo mode will cause the esc to go into "lipo cutoff" very quickly. Nimh batteries don't maintain their voltage like lipos do.
Yes it will work, but you won't get the most out of the Nimh batteries by running them in lipo mode.