Ten months after I had fallen ill, my friend paid me a visit.
Could you please check my sentence?
See above. You need a comma. Also, without surrounding context I can't see why you used the past perfect. The natural standalone sentence would be "Ten months after I fell ill, my friend paid me a visit."