Actually depending on the circumstances, both can not only be acceptable but are required. You have the right and the resposibility to make emergency repairs to prevent or reduce further damage. You also have the responsibility to notify the insurer of the damage and any steps taken to prevent further damage as soon as feasible or practical.