Yes, the size of the body of an organism and the size of the lungs is related. According to the size of the animal, the requirement of oxygen depends. If the size is large, the requirement of oxygen is more but the rate of respiration is slow in bigger animals. So, their metabolism is also more. So, the lungs of elephants are also bigger.