Only if it’s coded that way. And a profit-seeking org may not code it that way if the optimal solution (for them) is canceling and finding more lucrative passengers.
A profit seeking org wouldn't take the ride in the first place instead of repeatedly accepting and cancelling. Or it would simply increase the price because it implicitly knows the value.