I've read that keeping one's credit card utilization below 20% improves your credit score.

If for some reason I have an expense that is greater than 50% of the credit limit and I pay by credit card, and then transfer the money to the credit card account immediately, will the higher utilization still affect my credit score?