Of course.
But, God also gave it to us for enjoyment.....WITHIN the marriage relationship.
Those who view it only as a means of procreation are missing out on something that God gave us for pleasure, not just procreation.
That's why I use the words "primary" and "secondary." I take the Thomist stand, not the Augustinian one.