Act, sure, but that's not their main purpose.But they still act as historical records.
If you're interested in seeing non-Jews having a go at what the Jewish view of the Tanach is, I suggest making popcorn and sitting back:
The Ten Plagues of Egypt- allegorical or historical?