Yup. Aerial parts are the medicine.
Eupatorium perfoliatum has more research and history as a medicinal, but Eupatorium serotinum has been historically used for similar things.
Here’s the Quickview on Boneset
Boneset (Eupatorium perfoliatum)
Don't use herbs or combine herbs with medications or use them during lactation or pregnancy without talking with your healthcare provider.