No, Octopath Traveler II has its own standalone story unrelated to the first game in the series. However, you may better understand the game's mechanics if you have played the first. But it is most certainly not a necessity.