No. The sentence would be correct no matter what form of writing we're talking about--fiction, non-fiction, memoirs--wherever you have dialog or quoted remarks.