Which statement describes the relative age of a fossil that has formed inside a layer rock

The fossil that has formed inside a layer of rock can be considered younger than the rock layer itself, as the formation of the fossil occurred after the deposition and solidification of the rock layer.