There's jealousy and there's common sense.
Jealousy, like fear or anger, is stigmatized as completely negative, but is natural and does serve a logical purpose.
People who are dishonest and running game on you will use the stigma of jealousy to gaslight you and make you believe that you're not seeing what you're seeing.
Of course, jealously can be negative.
Jealously, when unchecked and irrational, is destructive to all involved.
Rational jealousy definitely plays a role in a relationship, and it should.
That is your natural alarm to signal you that something isn't right.
The magic word is "insecure". It's like a scarlet letter.
People let all kinds of flagrant bullshyt fly, so as to not appear "insecure", and then end up getting played.
The answer is yes, there's definitely a place for jealously in a relationship.