Merge part of a pull request

New Git and Github user. Is it possible to accept/merge only part of a Pull Request?

For example if there is a Pull Request on Github that has 4 commits but you only want to use 2 of them, is there a way to simply merge the 2 and disregard the other 2?

Git Baby is a git and github fan, let's start git clone.