It may be safe. However, it is unlikely to be effective.
There are NO medications which are recommended to be used within a display tank. The only reliable treatments for saltwater ich are hyposalinity and copper (neither of which are safe for inverts or live rock).