Yeah exercise with proper technique will prevent spine or Lower Back Pain. Also there are other things to keep in mind like sitting on pc for long and sleeping on bed with bad postures can cause back pain. So in order to cure that pain exercise and other therapies will be used.