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

Yes I can turn on the LED.
Would you mind explaining me more details?

Thanks.