Yes, crab cakes should be cooked thoroughly to ensure they are safe to eat, though the exact time will depend on their size and thickness.