You can use coffee grounds if you feel that you may need to increase the soil's acidic level. In such cases, use a little amount, and water is adequately so that it gets mixed with the soil. Keep the soil at a neutral level for ferns to grow properly without any major damage. For ferns, it is best to avoid using coffee grounds unless necessary.