It really depends on the type of medical condition. This is the sort of thing you should discuss with your doctor. Make sure to follow their professional advice and look after yourself. No tattoo is worth risking your health over.