No, it is not necessary.
However, it's usually advisable. Further, the example you gave doesn't make sense. If the buyer is paying cash, he still needs all of the services that would be provided by a buyer's agent. What the buyer doesn't need is the services of a lender.