Can you have dual residency in two countries?

Yes, you can have dual residency in two countries. No country stops or forbids its citizens from having a residency in another country. There are countries that forbid their citizens to hold the passport of another country without relinquishing the original passport. In such countries, you have to forgo your passport and then you will get the passport in another country if your application is granted.