A cooldown lets your effort ease down after a workout. It may help you feel settled, but it cannot promise less soreness tomorrow.
Soreness can follow unfamiliar activity. It is not proof that a workout worked. People can make progress without chasing pain, and recovery differs from person to person.
Today, finish with a few minutes of easy movement if that feels comfortable. Let your pace slow before stopping. Build new exercise gradually, and ask for help if pain feels sharp or unusual.
Where this comes from: Mayo Clinic’s guidance on warming up and cooling down after aerobic exercise.