In one of the free course on AnalyticsVidhya the tutor says that we can not use ROC curve to compare two models, is it so ?

We can use ROC curves and ROC_AUC scores to compare two models.

Some models return the probability of positive class. You use that probability as the score to plot the curve.