Yes, this is the straightforward ‘collaborative filtering’ algorithm. I suppose the line between ‘algorithm’ and AI/ML is not well defined though. At what point does a technique become ‘AI’? I don’t know a good answer.
As an utterly cynical layperson, algorithm means directly querying data. AI means feeding systems with training data and sprinkling them with magic obfuscation dust.