Yes it is a slow-growing plant but its easy maintenance and pest resistance make it an ideal indoor plant.
As an Indoor Plant
Yucca plants love full sun and tolerate partial shade.
Sunlight Needs
Yes yucca plants can be grown in the bedroom, with enough sunlight provided for the plant it can happily keep your bedroom greenish.
Yucca for Bedroom
1. Drooping leaves2. Yellowish or discoloured foliage3. Falling leaves4. Leaves become brittle5. Brown leaf edges and tips6. Leaves will stretch out7. Spotty and wilting foliage8. And morbid as well as dying stem - more at PlantCare365
Signs of Dying Yucca
Air Purifier: Apart from its drought-tolerant nature it is flexible and one of the top-rated plants for indoor air purification