Do clay and muddy sediments lithify to form shales and mudstones?

That is exactly correct.