Well, I guess it would depend on why you're opening and closing it.
If you carry your MacBook Pro around often, and need to shut/open it, that's probably fine. But if you're worried about breaking that cable, I would only shut/open it when necessary; if it's not moving from your desk, then it's probably best to keep it consistently open. I would get a dust cover, though.