Will I be charged gas fees if my transaction fails?

Updated