Yes, coffee grounds are a good fertilizer for pineapple plants. Pineapple plants can have issues with insects, so that they might need extra care. Make sure you give them the amount of fertilizer your plant needs. They grow best in full sun.