Retirement tax questions

I thought the amount in box 2a would be my cost basis since this the gross distribution minus box 6. Do I use box 1 since the amount has been rolled over?  @dmertz