t-tests and df

can someone please confirm this… T-test when testing (r=o) we use a df of n-2 T-test when testing coefficients we use df of n-(k+1)

correct