Probably. If a rat problem makes your residence uninhabitable and your landlord doesn’t take the necessary measures to fix the infestation, you have legal grounds to break your lease. As always, be sure to document the issue in detail.