As long as you feel reasonably healthy and any medical complications are under the care of doctors, it is safe to say that this should not be a barrier to completing the course.
However, the final decision must of course be made by the flight doctor, so it is recommended that a medical examination is carried out prior to commencing training.