Its fine to have it within 8-10 inches, but once you are nearing the end of flowering the intensity of the light hinders terpene production and you end up with a plant that tastes average. If you give it some distance at the end of flowering however, thats when you get the nice smells/flavors that aren't so common such as berry.
Info is from an article I read by DJ Short, by the way.