Whether or not

Hi All,

Which is correct from the below?
(I guess that the second is correct but I’d know if I can use the first, too)

You could say at least whether the above code is OK or not.
You could say at least whether or not the above code is OK.

.
Both are OK, Attila.
.