Yes, it does say that, but in a very specific context: the anticipated conquest of the sanctuary city of Mecca where fighting was usually forbidden, and the permission comes hedged about with qualifiers.