Yes it is possible. You need to find a program with an open spot, and you will need to have a good reason for switching. It will be very helpful if you have a good relationship with your current internal medicine department, and they are willing to let you go, as you will likely need a recommendation letter from the residency director.