Real estate tip: First-time buyer should avoid dual agency

Can one real estate agent represent both parties in a transaction?