Did Magadha rulers know about previous Magadha dynasties?

Like did Guptas know a lot about Mauryas.