Will cherry-pick api work between different repositories

I need to cherry-pick a commit from repository A to repository B
I wonder if cherry-pick api will work between two different repositories

some thing like below

curl --location --request POST ‘https://{{host}}/api/v4/projects/{{project-id-b}/repository/commits/{{branchB}}/cherry_pick’ \

–header ‘Private-Token: token’ \

–form ‘id=“project-id-a”’ \

–form ‘sha=“commitSHA”’ \

–form ‘branch=“branch-a”’

full docs here : Commits API | GitLab