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