Your program is paused while you take part in a challenge, so you won't lose any progress. When the challenge ends, you can pick up your program exactly where you left off.