Yup!
Sediment gathers at the bottom of a lake or sea. Builds up deeper and deeper layers. Each layer is formed by a sediment deposition event. Each layer you go down is going further into the past of that former water body.
Because sedimentary rock requires standing bodies of liquid to form, they are only found on Earth and Mars (and maybe Dragonfly will find sedimentary deposits on Titan which would be very different in chemistry).