Hey,
It is possible to have both powerbi gateway and ADF IR on the same server but it is not recommended.
It is not right to install both Integration Runtime and Power BI gateway in same machine, because mainly Integration Runtime using port number 443, which is one of the main ports being used by Power BI gateway as well, so technically this is not possible both applications listening to same port.