Baby spitting up pear puree

Does that mean he's allergic or he's not ready for it? It's his first fruit and we've never had this issue with any of the vegetables..