Using artifacts from a job in a different pipeline on the same project

The CI pipeline triggered by a merge request event runs a build job. The job has artifacts.
The post merge pipeline (same project) wants to avoid invoking another build. Using the build job artifacts should be sufficient.

Added the following to the post merge pipeline job, which I am facing some challenges to validate.
Does that looks good?

needs:
    - project: $CI_PROJECT_PATH
      job: build
      ref: $CI_COMMIT_REF_NAME
      artifacts: true