No, because detergents can lather well even in hard water. They do not form insoluble calcium or magnesium salts (scum). On reacting with the calcium ions and magnesium ions present in the hard water.