I find it can either harm or help. One tends to be happier in a relationship, which makes one do better work. But it also takes time away from work. So the best case (for work) is a relationship that makes you happy but doesn't take up too much time.