Exactly.
No uterus = no pregnancy unless it is a very very rare case, such as having kept the tubes and there already being an egg in the tube at the time of surgury, leading to a potential fatal tubal ectopic.
Or in another extreme rare case where the lady happened to have a "didelphic" uterus or more simply put a uterus divided in two (double uterus) and only one half was removed.
Both cases are extremely rare.
A double uterus would normally be picked up in the teens/early 20's, occassionally as late as during in a pregnancy, and very very rarely as late as during in surgury.
There is only one case I have come across during my extensive research, where a double uterus has been missed completely.