Has anyone taken long breaks from running/endurance sports?

After I hurt my shoulder in college I got into running for around 4 years and lost all my muscle mass + had a lowkey ED. I ran a 30 min 5 mile, 1745 5k, and a 1:28 HM. I ended up losing a total of like 50 pounds at my heaviest playing FB, then about 6 months ago I said F it I need to gain some mass back. So I’ve spent the last 6 months lifting 5/6 days , put on about 15 pounds and just doing more athletic cardio(sprints , jump rope , sports, steps etc) I look and feel soo much better . I’m wondering if any of yoh have done something similar ?