Yes, you can get travel insurance if you have a pre-existing medical condition. You may not be covered for cancellations, interruptions or travel medical claims relating to your medical condition but this isn’t always the case.
Be honest with your travel insurance broker if you have a medical condition and they’ll be able to help you find the right coverage as well as explain any limitations.