Yes, a lot of the ancient belief systems revolved around the movements of the Sun. The Sunset was indicative of the end of a cycle and to many the Sun was seen to rest in the underworld before rebirth the next day. This is what they believed would happen to their souls, at death they would journey to the underworld, rest a while before being reborn in another life.