Boyfriend doesn't like sex

Jessie
My boyfriend and I have been together almost 2 years now, and we have had sex pretty much since the 3 month mark. Here lately he has completely stopped and he won't even touch me. He told me last night that he doesn't even like sex or want to have it. Should I be worried? I asked him what would happen when we decided to have kids and he said that then it would be different because he wouldn't be doing it for pleasure. I don't know what to think. Is it me?