when paying onchain the fee is a function of the transaction size (the bigger the transaction, the higher the fees).
having multiple input UTXO makes the transactions bigger, so it is sometimes a good idea consolidating UTXO.
One thing you have to take care of however is privacy: if you don't mix your UTXOs carefully you might link your identity to unwanted TX or reveal the amount of Bitcoin you own.