Although this sentence is correct, I feel like the English version should be followed by 'or not' just to make it sound complete.
I've changed the best translation to "if" instead of "whether", sounds the most natural without adding more