Yes! I am currently keeping a white eyed moray in my tank, and he is a model citizen! Unless you’re a crab or shrimp, then you’re lunch.
It can definitely be done, though you have to take certain things into consideration. Pebble tooths will eat your crabs and shrimp, though will leave hermits and snails alone (unless the hermit is swapping shells). Fang tooths are a different matter entirely, as they will also prey on small fish. Can be solved by stocking larger, aggressive species and feeding it well, though nothing is ever a guarantee of course. They also produce a ton of waste, so you may need to up your water change schedule or have some sort of nitrate scrubber. They’re also big, powerful fish, so they could knock over unsecured frags.