Bodybuilding has no effect on height. It will not help you to grow taller, nor will it make you shorter. The idea that exercising as a child can stunt your growth is also untrue (though there is a caveat to this).
Does muscle growth affect height?
Lifting weights around the time you hit puberty or your teenage years does not stunt your height. Matter of fact, since weight training is directly related to increased production of testosterone, it might just help your muscle grow bigger, denser and stronger, even taller.
Does gym affect height?
Dr. Rob Raponi, a naturopathic doctor and certified sports nutritionist, says the misconception that lifting weights stunts growth likely stems from the fact that injuries to growth plates in immature bones can stunt growth. ... But it's not the result of lifting weights correctly.