Yes, you use both codes.
In TurboTax, there are two drop down entry areas under Box 7 on the Form 1099-R entry screen to accommodate this.
If there are two codes in box
7, such as 1D, choose "1" in the first drop down, and "D" in the second drop down.