It sounds like you are asking about recreational drug use of yucca. Maybe by "joint" you actually mean something else.
I think, but can't be sure, that the question is about "joint pain". If so, here's an article (not sure if the link will work since it might be academic access only): Anti-inflammatory and anti-arthritic effects of Yucca schidigera: A review from the Journal of Inflammation