Hi & welcome! How was this plant transported/shipped?
It's normal for the tip to turn black, even if the stem is still very much alive. Is there a tiny new growth poking from the top of the stem on the right? New growth would form on these stems/trunks at a right angle, from the side somewhere, usually near the tip of where it was cut.
This is a diff kind of plant, a Begonia, but shows well how the top of the stem has turned dark, above the point where the new growth is coming out. It's healthy & fine, and this is the plants' way of sealing that wound from infection.
This pic might be a diff kind of Yucca, but shows the new growth coming from the side of the old trunk.