Our habits, whether good or bad, influence our relationships.
This doesn’t mean one who has good habits equals having a good relationship.
The other person has habits of their own that you’d have to put up with.
Your good habits may be envied by the other person causing jealousy, not good for any relationship. Vice versa.
Your bad habits may be adored and cherished by the other person but it isn’t good for you, you may lose yourself. Vice versa.