Absolutely. However, the name on the receipt is the name of the client, not the person who paid.  If necessary, a note can be added to the receipt, such as “Mr. X was the client, and the session was paid for by Ms. Z”.