Yes, but only in certain situations.
If your residence is uninhabitable and your landlord fails to remedy the situation in a timely manner, or if you’re a victim of certain crimes like domestic violence, sexual assault, or harassment, you can terminate your rental agreement without penalty.
Be sure to document any issues in detail and call law enforcement if you fear for your safety.