No kids?

My boyfriend is completely close minded about having kids he tells me he doesn’t want kids but other times he’s like i want kids with you. But if i got pregnant and it was a surprise(i’m not pregnant) i’m scared he’ll leave but he’s also not that type of person so am i just overthinking?