Where in the world are you?
I'm in the UK and just got my Yucca plants from Dobbies garden centre from the indoor plant section.
I made sure I washed the leaves and stems with a mild bleach solution, or you can just use soapy water and rinse really well.
Some repot their plants too.
Cover soil with pebbles to prevent swallowing of soil (Big enough pebbles not to be swallowed!)