Both are correct and have the same meaning. However, using whether or not (or just whether) in this instance is unnecessary. I would use if.
Also, or not is needed only when you mean regardless of whether, e.g., She uses an umbrella whether or not it is raining. The sentence reads awkwardly if or not is omitted.