Understanding Interrupts

Is this possible to use the interrupt() and noInterrupt() functions outside the main program? In this case what file would have to be included?