Is the law part of the gospel?

I remember being quite confused for a long time by the question that titles this...