No it doesn’t. It meant to commit one’s heart to God and remain sinless.
Matt Chapt 19 is about marriage and divorce.
If your argument was correct, the CC has failed miserably.
The footnote on this passage reads:
19.11-12 Jesus means that a life of continence is to be chosen only by those who are called to it for the sake of the kingdom of God.
Clearly beyond marriage or divorce.