Yes, a 2' light is 20" in length, and will fit over your 24" wide tank.