You can, but it's not necessary. I usually prefer to cook them first, let them cool off, and then dice. This way there will be less chance that they will fall apart while boiling.