Medical conditions, such as serious heart or lung problems, can increase the risk of any surgery. If the problems are weight-related, however, they may increase the need for surgery.
Having severe medical problems doesn't mean you are not a candidate for surgery, but they do make your risk for complications higher.