Hardly.
The mechanism in which ketoconazole works is not clear. It probably leaves on your scalp a coat that hinders DHT functionality.
Others say it just cleans your scalp and restores a good environment for hair growth.
None of these effects is similar to that of minoxidil, which "ties" new hair to its use and will cause hair loss if doscontinued.