It depends on your intentions. Suppose you were simply trying to be friendly and had no intention of pursuing a romantic or sexual relationship with that person. It’s probably not a big deal.