Yes, its primary purpose is cooling. The hot air created by the PU is vented out of the chimney vents.
However, there is a sort of secondary aero benefit (as opposed to function): by opening up the cooling at the top of the engine cover fin, Red Bull is probably cutting down on venting heat from out the back of the bodywork (thus allowing cleaner flow underneath the RW and on top of the diffuser).