So basically, the plants have to have the same height in order to be able to grow them together indoor?

Or is it possible to simply start the flowering process when the plants are really small so that they all get the same amount of light?