Is it possible to join the same table twice?

in our case we want:

polymorphic_table.left_joins(:course, step: :course)

Problem when polymorphic_table type is “Step” in such case course does not join

https://stackoverflow.com/questions/54066827/left-joins-the-same-table-twice