Do Relationships Make Us Codependent?

Some relationships end up being codependent ones, but is this healthy? How do you get out of it?