It's possible, but not very likely, that during the stage of ich where it falls off the fish as a cyst and before it hatches to release more parasites, it could be laying on a piece of rock the coral is attached to. If you happen to get the intact cyst into your tank, it could then hatch and the new parasites can infect your fish. But ich can't live on/in a coral. It must have a host fish within 6-10 days of hatching or it will die.