There's a limit to that though. You can also pay too low of a fee and your transaction NEVER gets processed.
When you submit a transaction for the first time, it enters the client software's mempool. Miners pull transactions from the mempool if they deem the fee high enough to include. If your fee is too low, it sits in the mempool long enough that the client software purges it forever. It has to be resubmitted or it never gets mined