It is okay to use an air conditioner when it is raining outside, but if you don't want a sudden malfunctioning in your AC unit, then you need to follow the required precautions.
Using an air conditioner during rain is completely safe because rain alone can't damage your air conditioner and apart from this, modern cooling systems are also designed to work suitably during the rainy