No; this is a build-time thing. If what you wanted were possible, CMake would need to reconfigure the project anytime ninja -jN is passed in case it is different.
One possible solution is something like this (follow where the variable is used). Note that there is infrastructure this is riding on, but you should be able to do this in your BUILD_COMMAND bits directly.