The template will tell you if you change your HD, yes. Lich and vampire are already noted, but I'm guessing you're going for Necropolitan? If tht's the case then you do change your HD to d12 as per the rules, and the example necropolitan wizard does indeed have d12 HD despite being a 5th level...