Yes, it is possible to have womb cancer. This is also known as "uterine cancer." If a woman is pregnant while suffering from this form of cancer, the baby is often in serious danger, since cancer treatments are harsh.
There are several distinct types of uterine cancer, and the specific type often determines the viability of the baby. Some types are advanced when discovered and require termination of the pregnancy.