It's not cheating but will easily lead to cheating. So best avoid it. Would you like it if your wife/partner flirted with another man?