Yes. I think both books tackle all topics in a self contained manner.
You'd have an easier time with the second book if you're familiar with the content of the first book. Like understanding generics, classes, collections, interfaces etc.
I would classify the first book as the title suggests, it's core Java. The second book I'd classify as being modern java since it goes into the details of features of Java 8, 9 and 11.
Also, the first book has more imperative programming examples since streams and lambdas are not too prominent in the first book. But the second book introduces those concepts and adds some functional programming to the code examples.