It's common that when back pain strikes the instinct is to lay down, move as little as possible and avoid physical activity. But the truth is that stretching and exercising can provide relief from back pain and also help to prevent flare-ups.
Source: back pain relief