Yes, you can make the dip in advance, but instead of baking it, place it in the fridge. When you are ready to eat it, get it back out of the fridge and bake it as above, but give it an extra 5 minutes or so in the oven. This will ensure that it is heated throughout.