When stock is purchased brokerage is to the cost price

Does brokerage fee impact the cost basis when purchasing stocks?