Lava is a type of magma but not all magma is lava?
Magma is molten rock beneath the Earth's surface, while lava is magma that reaches the surface through a volcano or fissure. So, while all lava was once magma, not all magma will reach the surface as lava.