More or less, yes. That’s also why it appears more red/orange as it gets closer to the horizon from your perspective, since at that oblique angle the light has to pass through more of the atmosphere to get to you and more of it gets scattered or absorbed by particulates in the air.