Possible?

Is it possible to ovulate right after a period? My cycles were irregular and I didn't get a period in 4 months... So I was wondering if it was possible?