No, it said what the sun did. It stood still in the heavens and the moon remained in place for an entire day. The only explanation is that the writers of Joshua believed the sun revolved around the earth. Something that has been disproven, but you never know. We may be faced with 'intelligent astronomy' one of these days.
For the purpose of this kind of discussion, it doesn't make any difference what the writers of Joshua really meant. We know from historical records that for at least 2000 years it was interpreted to mean that the sun revolves around the earth. We know this from the writings of people like Martin Luther.
We also know that other Biblical writings have been reinterpreted over the ages, just as Genesis will evntually be reinterpreted. Reality trumps the vanity of people who think they are the only true interpreters.
Behold!