In short: no, no cure is developed in The Last Of Us Part (and Season) 2 for the cordyceps infection that changed the world. The plot of The Last Of Us 2 focuses on Ellie's life years after the events in Season 1: she lives in Jackson with Joel.