Depends on what you do with that jealousy.
If you’re jealous and work to better yourself or your situation, it was good
If you’re jealous and you work to ruin it for the other person, it’s bad
If you’re jealous and just sink into a dark place mentally and do nothing, it’s bad