Yes, but you also need to make some modifications to the common.ai (Or just edit the melee script by replacing hero_id/hero_id2/hero_id3 with the ID of the tavern hero) :
JASS:
//============================================================================
// PickMeleeHero
//============================================================================
function PickMeleeHero takes race raceid returns integer
local integer first
local integer second
local integer third
local integer last
local integer array heroes
//------------------------------------------------------------------------
if raceid == RACE_HUMAN then
//------------------------------------------------------------------------
set heroes[1] = ARCHMAGE
set heroes[2] = MTN_KING
set heroes[3] = PALADIN
set heroes[4] = BLOOD_MAGE
//------------------------------------------------------------------------
elseif raceid == RACE_ORC then
//------------------------------------------------------------------------
set heroes[1] = BLADE_MASTER
set heroes[2] = FAR_SEER
set heroes[3] = TAUREN_CHIEF
set heroes[4] = SHADOW_HUNTER
//------------------------------------------------------------------------
If you scroll to the bottom of the common.ai you will see that each race has its unique heroes. You change which hero should be summoned by overwriting them with the ID of the new hero or you can add more.
JASS:
//--------------------------------------------------------------------------------------------------
// set_skills
//--------------------------------------------------------------------------------------------------
function set_skills takes nothing returns nothing
set skill[ 1] = HOLY_BOLT
set skill[ 2] = DEVOTION_AURA
set skill[ 3] = HOLY_BOLT
set skill[ 4] = DIVINE_SHIELD
set skill[ 5] = HOLY_BOLT
set skill[ 6] = RESURRECTION
set skill[ 7] = DEVOTION_AURA
set skill[ 8] = DEVOTION_AURA
set skill[ 9] = DIVINE_SHIELD
set skill[10] = DIVINE_SHIELD
call SetSkillArray(1,'Nbst') //Beastmaster
call SetSkillArray(2,'Nbst') //Beastmaster
call SetSkillArray(3,'Nbst') //Beastmaster
set skill[ 1] = THUNDER_BOLT
set skill[ 2] = BASH
set skill[ 3] = THUNDER_BOLT
set skill[ 4] = THUNDER_CLAP
set skill[ 5] = THUNDER_BOLT
set skill[ 6] = AVATAR
set skill[ 7] = BASH
set skill[ 8] = BASH
set skill[ 9] = THUNDER_CLAP
set skill[10] = THUNDER_CLAP
call SetSkillArray(1,'Nngs') //Naga Sea Witch
call SetSkillArray(2,'Nngs') //Naga Sea Witch
call SetSkillArray(3,'Nngs') //Naga Sea Witch
Now, as for the melee script : You just need to replace SetSkillArray with the ID of the tavern hero and manage his skills.