Should I tell him ?

Nancy
Should I tell him I was pregnant from him (the key word is WAS). We broke up and I do not think we should be together(I broke up with him cuz he was not committed to me all the way). 
Now it just happened but should I tell him ? Or it might sound like I want a revenge/get back together?