Yes. Just imagine the Binary stars being very close compared to the distance to the habitable world. E.g. two sun-like stars in sun-mercury distance, and an earth-like planet somewhere between mars and jupiter.
Three-body problems can be chaotic and can be ugly. But in the simplest case you can make them look like two-body problems and things will be just fine.
Most n-body systems are fairly stable just because of selection bias. The unstable systems didn’t last.
More precisely, the unstable parts of the systems were ejected, leaving only the (relatively) stable parts