Yes, persistent and unwanted flirting can be considered harassment at work, especially if you have asked your coworker to stop and they continue to engage in this behavior.