Start Pull Request build only to a specific branch

Hi, I’m new in the Jenkins world.
Currently I’m setting up a Multibranch Pipeline project, I have integrated this project with github.
For now build runs for every branch and every pull request that I make.
What I want to do is to trigger build only on specific branches(for example main) and only for pull requests to a specific branch.
So here is example:
PR: feature/styles → main - Trigger build on PR
PR: feature/styles → feature/footer - don’t trigger any build.

Is it possibe to trigger pull request build based on target branch?