Yes they are added to the cost basis.
Back in the old days brokers skimmed 7% and it was more significant.