It is unlikely for something like this to work
Your falling point here, like pretty much all questions about alien fauna/flora, is Chirality. If the planet your cockroaches land on has the wrong chirality, the cockroaches will not be able to derive any nutrition from eating the flora/fauna, and may in fact have lethal allergic reactions to it, quickly killing off your pests.
This is, of course, passing over the issue of maintaining a breeding population of cockroaches whilst they travel the depths of space, or the inherent problem that if the cockroaches eat 99% of the local flora/fauna, your cockroaches will have no more food and starve, potentially leaving some remote natives alive to repopulate.
It'd be much more efficient to launch a set of Von Neumann Probes to hunt down and eradicate life. Just make sure that the kill switch is the last thing to mutate though, unless you want to become a cautionary tale after your robots sterilise your home world.
As @Kieran mentioned in a comment, a way to use Von Nuemann Probes whilst sticking with the DNA theme would be to have them analyse the environment, before designing and manufacturing a set of invasive species (specialised for this world) to destroy the natives. Perhaps your probes could collect the DNA and use it for later invasions, producing your own Tyrannid Hive.