The story of Black Ops 3 is somewhat related to Black Ops 2. Some storylines and events carry over or have references that link the two. But it's not a direct continuation; there are new elements and developments too.
The story of Black Ops 4 is separate from Black Ops 3. They have different settings, characters, and plotlines. Although they belong to the same franchise, the narratives are independent of each other.