Probably, it says its a "Commensal" organism with the coral, meaning the coral is neither harmed or benefited from it. It just uses it as a place to hide. Crabs are opportunistic though, so it probably would eat small snails or whatever it can catch if not fed.