have you ever told your friend to stop talking or being overly friendly to the guy you are talking to or with?

have you ever asked a friend to stop talking to the person you like or your SO because it makes you jealous, mad, annoyed, or you don't like them being overly friendly or flirty? what are your opinions on it. do you think a true friend should stop talking to them or being overly friendly if you ask, or do you think it's not my place at all?