SQL server 2016 Master /Slave configuration

We are planning to migrate 10.5 for Integration server and MWS. We would like to know that "Is it possible to configure pools with SQL server Master/slave setup?

We want to switch SQL DB from primary to secondary in case of primary DB failure.

Please suggest me on this