Lower Back pain

31 weeks and getting on and off lower back pain for under an hour, I had sex about an hour or more ago. Could this have triggered the back pain? Or what else could it be?