If you're running on the main blockchain, it's possible, but not likely. You can write your own miner that uses whatever criteria you want to decide which transactions to process. Your mined block still needs to become part of the consensus, though, which makes the chances of success much lower (unless you build your own powerful farm of mining rigs).

The alternative is to use a private network. If you run your own private blockchain, you can process transactions for free.