Can I pay a bank loan using a personal check?

LG asked: Blame it on ignorance…
Because my credit union lost all my direct deposit account info when I initially set up an auto loan, I physically make my payments there each month. I always pay cash.
But can I simply write a check for the amount due and hand it to the teller? Is that acceptable? [...]