aching in lower back

I'm 31 weeks and this morning I woke up with a dull ache in my lower back its been coming and going all day and I've also got aching legs, hips and butt muscles, could this be due to stretching and preparing for birth?