No, Shopify does not charge a transaction fee for a fully refunded transaction. Shopify automatically removes the charge or, if it has already billed you, will issue you a credit on your next invoice.
However, if a purchase has only been partially refunded, Shopify does still allow the original transaction fee to remain.