Sure, why not? Just check the button periodically. Doubtless, you have some timer loop that just sits there and counts time. Inside that loop, you need to check the button.
Or, be told how to "do more than one thing at a time", using millis() instead of delay().