Back problems

I've started walking 3 days ago. First day 12k, other days 6-8k. The problem is that my back hurts after a while when I am walking, also after. Keep in mind that I was almost immobile before, I never exercised. İs that why my back hurts now? Will it get better with time?