Found out I’m pregnant

Just venting and hoping for some understanding guidance.

I been hooking up with this guy for a year now and just found out I’m pregnant. I been on birth control but guess this time it didn’t work. We talked about it and agree it’s not ideal to have it since we aren’t together. But I told him after I decided to keep it and he doesn’t need to be involved. Long story short he’s saying I’m doing this out of spite now and probably purposely got pregnant. That I’m doing all this on purpose to him. I want my baby but he’s making it seem like I’m doing all this cause of him and I just can’t grasp why he thinks someone would have a baby out of spite just because I don’t agree with him.

Am I wrong?