Of course, in your custom code you can do whatever you want including connect to a different database paltform as long as the database is accessible from the web server so you can connect to it. It just means your feature will need its own connection string and its own data access code.