On the one hand, if you want to create a natural and fresh atmosphere, hanging a tree at the end of the corridor may achieve this effect. On the other hand, if you pay more attention to the beauty and harmony of decoration, it may be more appropriate to choose other decorative plants or paintings.
Generally speaking, the final choice depends on your personal preference and overall decoration style. I suggest that you can first determine your own needs and preferences, and then decide whether to hang trees at the end of the corridor according to these.