Interrupts don't work

So, to have an external interrupt is it mandatory to have something connected to pin 2? Can´t it be simulated?