Deductions & credits

Do I understand correctly that the solution is to enter the values from 2021 schedule D lines 7 and 15 (Net short-term and Long-term gain or loss)?