Both options are possible when cooking a ham in a Ninja Cooking System. Using the oven function will give you a faster cooking time, while using the slow cooker function will result in a more tender and juicy ham. You can choose the function based on your preference and time constraints.