code required on refresh_token grant type?

I see that the token exchange endpoint requires the cod param. But is this true if the grant type is refresh_token? Unless i am missing something, i think only a refresh_token would be needed, not a code?