Question from the Java test

In the **java.util.HashSet** class, if we add an element already present in the set, the add method returns false.