[If you heat water to 100 degrees celsius], it boils.
---is the first part of the sentence the subordinate clause and the second part the main clause?
Correct. The sentence in brackets is a subordinate clause because it is introduced by the conjunction "If". The subordinate clause may either precede the main clause or follow it. You can say: Water boils if you heat it to 100 degrees Celsius.