Yes, in the event you have to process a customer refund for their order then the app fee commission that was collected for that order will automatically be refunded.
If the customer payment was made via credit card then the refunded app fee will be refunded
(Please note that starting April 1, 2020 for any customer refunds “credit card companies” have changed their policies and will no longer refund the credit card processing fee for refunded transactions)