Yes, the four chambered heart keeps your oxygenated and de-oxygenated blood well separated from each other which helps in maintaining a constant body temperature by giving a rich supply of oxygen and hence energy. While,  hearts with less than four chambers have slight mixing of these two types of blood and hence these animals are usually cold blooded.