That would be the smart thing to do! Life is short!
It makes no sense to become emotionally invested in a relationship with someone who does not want what you want. Being "compatible" is the key to any successful relationship.
With over 6 Billion people on the planet the odds are pretty much in your favor that there is more than one person out here that will want the same things you want. Ultimately each of us is looking for someone who will love and accept us as we are. (That includes our mate's point of view. If you can't accept someone the way they are then they are not "the one" for you. We always say "communication" is important in any relationship.
I'd say be thankful they were honest and did not say what you wanted to hear just to keep things going.
The worse thing to do is to try and change another person. Most attempts lead to frustration on one's part and resentment on their mates.