It can be any type of rock. If heat and pressure deep in the
Earth changed it, it is a metamorphic rock. If sediments of sand or
other rocks compacted/cemented together, it's a sedimentary rock.
If magma from a volcano cools, (on the outside of a volcano) it's
an igneous rock.