Yes, crabs can live in the same habitat as fish. They are often found in the same areas of the ocean, such as coral reefs and estuaries. However, crabs and fish may compete for resources like food and shelter, and some species of crabs may even prey on small fish.