If the output of the SHA256 is greater than n it will just "wrap around" and work.
Although, now that I think about it, if the output of your SHA256 was exactly n that would probably cause a problem.
But then, the probablity of the output of the SHA256 being exactly n is 1 / 2256.