Sampling audio with interrupt

Could you set a 1 byte flag in the ISR and act on that in turn in loop()?