No, you don’t need to play Honkai Impact before Star Rail, but you may get added context and enjoyment out of doing so.