Condom is used with many intentions and purposes. If the intention is correct and in accordance with Sharia law then it is allowed, otherwise not. If you want to know the detail regarding the same you should send the question again describing the intention of using condom.