Of course it has an algorithm, but I think you're referring to an algorithm that includes personalized or demographic parameters.
Regardless of whether the algorithm includes that (or rather, to which degree), let's not forget that bad actors can use the knowledge of the open source algorithm to identify the optimal way to manipulate the platform to bring their content on top.