Should I tell him I’m pregnant

My ex and I just broke up a month ago after being together for a year and a half. I found out I’m pregnant and he was the only I slept with but we are not together anymore so should I even tell him? I don’t plan on keeping it