'Call yml file into main yml file based on condition AZ Devops

I have main yml file for my pipeline. Is it possible to call/use another yml after condition is met in a task of main yaml?

- task: VSTest@2
  conditions: eq(${{ parameters.Update }}, 'true')
  ## use pipeline2.yaml to continue


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source