no, actually, codependency is a learned behavior (usually from childhood) where a person struggles with a constellation of behaviors that are often conflict-averse, and takes almost a care-taking role of the partner, often to maintain the status quo.
they frequently live in denial and are blind-sided by situations that have been brewing, but instead of taking action, they frequently ignore/pretend it isn't there.
low self-esteem is a big part of this, as they will often sacrifice their own needs to smooth over problems and avoid anger. they struggle with identity and need to be needed, basically supplanting their own identity with another's.
generally co-dependents find themselves with addicts and often are addicts themselves, as they struggle to cope with their love-hate relationship with the drama they draw to themselves. but to be clear, codependency isn't thrust upon a partner, but evidence of unresolved issues residing within the co-dependent.