Yes, it's important to cook the spinach to reduce its volume and water content. For artichokes, if you're using canned or marinated ones, they are already cooked, but fresh artichokes should be cooked until tender.