Does lifting heavy weight make you shorter?
Short answer: no. this question is almost always addressed to weight lifting while the risk is greater in most other sports. Subject you the qualification that you start out at low weight, pay careful attention to developing your form, and always avoid ego-lifts, there is no substantial risk of stunting growth.
If you are in your teens or early 20s you have soft ends on your long bones called growth plates. Damage to these can stunt growth potential in this age range as this is where the growth comes from. You are not likely to damage these plates lifting progressively heavier weights as there are no sudden changes in direction or impacts to absorb. In this sense football (soccer) represents a greater risk. the only additional risk posed by resistance training is that you are not likely to be competently coached. More than likely, you will head down to the local gym with a few mates and bring the collective wisdom of youtube with you. There's nothing wrong with that but make sure you start with solid information. One of the best sources for novice lifters is Buffdudes. I think they stand out as the best newbie information on YT. That is not to disparage other channels but many have a different focus and some are simply not very good.