You’ll have to check the status of your bill transaction to know if it can be cancelled. 

Successful Transaction: A bill payment at this stage cannot be cancelled.

Pending Transaction: A bill payment at this stage will automatically be updated as successful/ failure within 24 hours and cannot be cancelled.