Yes it seems I read/heard that they must first offer an invitation for the enemy to convert..and if they don't, then the heads can begin to fly.
The Turks did this prior to their invasion of Persia. Giving the opponent an opportunity to convert is the required "warning" from the Koran.