how important is it to do the exam around when you're doing the actual flight training?
for instance if you get the exam done and then don't start the training for another few months, will it put you at much of a disadvantage?
Nope - the Instrument course will include/remind you of the necessary information.