You cannot have multiple legendary permanents with the same name on the battlefield at the same time. However, Princess Yue's name becomes Moon when she returns to the battlefield as a land. Notably, you can control a legendary creature named Princess Yue and a legendary land named Moon at the same time.