they can be ok for section boundaries, especially going under the header or above it but you should try to avoid making them as high contrast as the text or they interfere with reading.
obviously this isn't so relevant if your talking about print but on screen it's just ugly. in print you can also make the lines thin which has the similar visual effect as low contrast.