If you encounter a crab in the wild, you should not bring it home. It may be illegal to get a hermit crab home from the beach, so check your state laws. They also have very particular care needs that differ from species to species. You can, however, buy an existing crab from a pet store.