When a transaction is pending on the network, it cannot be reverted. Consider that validators on the network need to verify the transaction. The time taken might fluctuate due to network congestion and the transaction fee. Therefore, to avoid any errors or delays, it is crucial to double-check the transaction details before initiating it.
To learn what you can do in such a situation, please see My transaction is stuck, what can I do?
NOTE:
Transaction may fail, still consuming network gas fee.