According to WarcraftDevs
on Twitter: "Any form of game time counts toward rewards for the Recruit A Friend system."
Whether or not it will count immediately
towards the RAF rewards (like Game Time purchased from the Blizzard Store) is still yet to be seen. My guess is yes though, since it applies game time right to your account, unlike subscription based game time which waits for your current game time to be up first.