It certainly would but a virus is probably the thing that will save the planet and it’s ever expanding population
We already solved population growth, at least in the West. Deaths out number births massively and population is in rapid decline. Well below replacement levels that no society in history has ever recovered from. (And yet a housing shortage, hmm).
Birth control access, equal rights, education, living standards. They are the solutions. Not culling the vunerable.
Also ironically the biggest influencer increasing fertility rates has always been natural disasters and wars.