Yes, a lawyer can act as a mediator. However, when acting as a mediator, the lawyer cannot represent either party and must remain neutral, facilitating communication and helping the parties reach an agreement.