```python:inference/core/workflows/execution_engine/v1/compiler/graph_constructor.py
from inference.core.workflows.execution_engine.entities.types import \
    STEP_AS_SELECTED_ELEMENT
from inference.core.workflows.execution_engine.introspection.entities import \
    ParsedSelector


def step_definition_allows_control_flow_references(
    parsed_selector: ParsedSelector,
) -> bool:
    target = STEP_AS_SELECTED_ELEMENT
    for definition in parsed_selector.definition.allowed_references:
        if definition.selected_element == target:
            return True
    return False
```