Yes, wrapping the ham in foil helps to keep all the flavours in as it cooks. Make sure that your foil is large enough to wrap around the entire ham.