It is not mandatory, but I highly recommend it. Rogue One tells the story of the Death Star in a way that complements A New Hope to perfection, adding a lot more detail and context than the first Star Wars movie did.