>>> I'll counterpoint this and say chances of getting injured can be pretty low if you take your time and study up on your form.
Yes absolutely ! And you build muscle WAY MORE FASTER with real weights versus calisthenics
The two rules of the gyms are basically : no machines, and 'form before weight' (i.e. master a movements at a given weight without feeling hurt before moving up).
The only two actually dangerous movements are deadlift and squats and it takes at least a PT sesion + a few "form check " on r/fitness to get it right but once it his mastered it's all good. Alsso bench press but it really start being possibly dangerous at 80kg and you are aready quite developped anyway so you are already supposed to master the basic of form an training.