That's just an extreme example.
By definition, yandere is a person who loves his / her lover so much that the yandere will do anything for the lover, to the point of mentally sick.
E.g. A yandere girlfriend will kill the girl that tries to get close to yandere's boyfriend.