Can the transaction fee change while the campaign is running?

Yes, you can change transaction fee while the campaign is running.

To change the transaction fee for all contributions make sure that the post charge setting is enabled for such campaign already. You can adjust the transaction fee per campaign in the campaign settings or globally on the payment settings.

If your campaign is on the direct charge mode, then only the new contributions will reflect what the transaction fee is currently adjusted to.