Yes of course, igneous rocks are formed by both the cooling, solidication and crystallization of molten magma within the earth crust or below the earths surface (intrusive igneous rocks) and also outside the earth crust or on the earths surface (extrusive igneous rocks).
igneous rocks are formed by magma reaching earths surface and cooling quickly to form extrusive igneous rock.another igneous rock is called intrusive igneous rock. it is formed when magma cools and hardens below the surface.
Igneous rocks are formed from the cooling and solidification of magma. Intrusive igneous rocks are formed from magma below the surface. Extrusive igneous rocks are formed from lava (magma on the surface).