Yes. Write to the payday loan company and tell them you are withdrawing the ACH (Automated Clearing House) permission you had given them to withdraw money from your bank or credit union account. You should write to your bank or credit union as well.
In fact, you can stop automatic payment from your bank account even if you have not revoked the ACH authorization. Write a stop payment letter to the bank.
Sample letters for writing to the payday loan company, the bank, as well as the format for a stop payment letter, are available on the website of the Consumer Financial Protection Bureau.