Is it legal for real estate agents to pay for buyer's closing cost ?

can buyer's closing cost/downpayment deducted from real estate agent's commission ?
6 answers 6