Yes, sure.
But if you start another company in eg. cayman islands, then transfer your patents to that company, then that company charges you fees for those patents, and you earn zero on paper in your home country, and a lot in a country with very low taxes, you avoided the taxes in your main country. This is something large companies can afford to avoid paying the same tax rates as smaller ones do, while using the same (or even more) of the infrastructure that is paid by those taxes.