Certified GKH Gardening Expert
Unfortunately, your photo did not come through. I am not aware of any Yucca species that are canes. Is this, possibly, a standard yucca shrub? If it is a cane, then it may not be a yucca.
If this is a standard yucca shrub, then it will survive in zone 7, though they can look pretty bad through the winter. They can die back, fully, but regrow from underground tubers in zone 7. Offering a little protection, like mulch, can help offer better protection from the cold.
Here is an article that will help you to grow them: