It really depends on what lights, nutrients, and strain you're using (there are many more factors but those are some main ones)
With more height it means the lower buds are farther away from your light, as light decreases with distance.
If you have some powerful lights or good side lighting you can get some great yields with taller plants.
In general though a taller plant will have more budsites, so it will yield more bud. Obviously a 6 foot plant will harvest much more crop than a 2 footer.