The impact is beneficial and running won't damage your knees, at least if you're at a healthy weight. But other sports such as weight training, rucking, or certain martial arts might be more beneficial than running from a bone mineral density standpoint.
https://peterattiamd.com/ama37/
https://www.health.harvard.edu/healthbeat/will-continuing-to...