It depends on the policy wording but generally you are covered as long as you’re not currently receiving medical treatment for your pre-existing condition. You’ll also be covered if the insurer has been told about your condition and agrees to provide cover.