Depends on the corals but what kind of pipe do you want?
The red banded ones swim most of the time so corals wont affect them but the dragon face pipes are going to be slithering all over the rocks so they will be touching them so stinging corals should be avoided