In short no. There are some cases where the word 'if' is not used as a conditional statement. The word 'if' might be used in an idiom or some other way that doesn't represent a conditional statement. In those cases whether cannot be replaced in its stead. Below is an example of how if is used in each case and shows when it can be replaced with the word 'whether'.
If comes from Old English. Below are the definitions and usages of if. I will interlace the solution within the solution within the definition below.
in case that; granting or supposing that; on condition that':
Sing if you want to. Stay indoors if it rains. I'll go if you do.
For the above case yes you can replace whether with if
(2) even though: an enthusiastic if small audience.
in this case no. Placing whether in place of if does not constitute the meaning of 'even though'.
(3) whether: He asked if I knew Spanish.
Of course, in this case, it is replaceable. We can say He asked whether I knew Spanish.
(4) used to introduce an exclamatory phrase: If only Dad could see me now!
In the case of an exclamatory phrase whether does not fit or make sense. 'If only' is often used an exclamatory or an expression of emotion.
(5) when or whenever: If it was raining, we had to play inside.
In the case above 'when' or 'whenever' can be replaced with 'if'. Grammatically a rhetorical statement is stated followed by a comma and then a proposed action. E.g. If I was a millionaire, I'd quit my job. So, in this case, no you can't replace it.
(6) a supposition; uncertain possibility:
The future is full of ifs.
In this case, the word 'ifs' represents possibilities or uncertainties. So the answer to this one would be no you can't in this case.
(7) a condition, requirement, or stipulation: There are too many ifs in his agreement.
The word 'ifs' also can represent conditions to be fulfilled. So the answer to this one would be no you can't in this case.
(8) ifs, ands, or buts, reservations, restrictions, or excuses:I want that job finished today, and no ifs, ands, or buts.
In this case 'ifs' is used in an idiom stating in short 'no question about it'. It might even be considered an exclamatory statement basically said with authority. The supplemented statement might look like this if updated for someone who doesn't understand the idiom.
I want that job finished today, and there will be no excuses and you will finish it regardless.
I want that job finished today!
Implying you will not make any excuses be
So the answer to this one would be no you can't in this case. Whenever 'if' or 'ifs' is used in an idiom you can't replace it with 'whether'.