How to know that I may or may not use interrupt?

From within the interrupt routine, turn on a LED.