Hypothesis Magnets with same poles repel and magnets with opposite poles attract

Is the hypothesis correct why or why not?​