Your Yucca will survive and in time will look fine in the sun conditions you have now given it. New growth will be acclimated to the new light conditions, and the old burned leaves can be removed later as they will not recover. Moving a plant from indoor light conditions to full sun will burn the leaves. Best bet was to have slowly transitioned it to the sun over a period of time for it to have acclimated.