Is it normal for a guy who feels rejected by you to flirt with your friends as revenge?

This has happened to a friend of mine and to me. A guy liked my friend and they were talking, but she didn’t end up having feeling like he liked her. Straight after she told him that, he started trying to flirt with me I think to make her jealous or something. Then later something similar happened to me. Is this normal?
Is it normal for a guy who feels rejected by you to flirt with your friends as revenge?
Post Opinion