Welcome to FlyerTalk gloverfamily and we all hope you enjoy your time online with us and learn to use and pass along the value of great travel information.
In the situation you described here you would most certainly earn the hotel points. These are considered two distinct transactions and one (balance transfer) does not interfere with the other. Nice way to start things.....